Examples of ModelProperty


Examples of com.wordnik.swagger.model.ModelProperty

    }
    Map<String, ModelProperty> properties = newLinkedHashMap();

    int index = 0;
    for (com.mangofactory.swagger.models.property.ModelProperty each : properties(modelContext, propertiesHost)) {
      properties.put(each.getName(), new ModelProperty(each.typeName(modelContext),
              each.qualifiedTypeName(),
              index,
              each.isRequired(),
              each.propertyDescription(),
              each.allowableValues(),
View Full Code Here

Examples of com.wordnik.swagger.model.ModelProperty

    @Override
    public ModelProperty toSwaggerModel() {
        if ($ref != null) {
            type = $ref;
        }
        return new ModelProperty(type, qualifiedType, position, required,
                Utils.getOption(description), allowableValues == null ? null : allowableValues.toSwaggerModel(),
                items == null ? Option.<ModelRef>empty() : Utils.getOption(items.toSwaggerModel()));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.