Package com.github.kongchen.swagger.docgen.remote.model

Examples of com.github.kongchen.swagger.docgen.remote.model.JModelRef


        String format = Utils.getStringFromJsonNode(node, "format");
        parameter.setDataType(SwaggerSerializers.fromJsonSchemaType(new Tuple2<String, String>(type, format)));

        JsonNode jsonNode = node.get("items");
        if (jsonNode != null) {
            JModelRef items = jsonNode.traverse(jp.getCodec()).readValueAs(JModelRef.class);

            if ("array".equalsIgnoreCase(type)) {
                if (Utils.getBooleanFromJsonNode(node, "uniqueItems")) {
                    parameter.setDataType("Set["+items.getRef()+"]");
                } else {
                    parameter.setDataType("List["+items.getRef()+"]");
                }
            }
        }

        parameter.setAllowableValues(Utils.getAllowableValuesFromJsonNode(node));
View Full Code Here

TOP

Related Classes of com.github.kongchen.swagger.docgen.remote.model.JModelRef

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.