Package com.carma.swagger.doclet.model

Examples of com.carma.swagger.doclet.model.Property


                + typeRef.max);
          }
        }
      }

      Property property = new Property(typeRef.rawName, typeRef.paramCategory, propertyType, propertyTypeFormat.getFormat(), typeRef.description,
          itemsRef, itemsType, uniqueItems, allowableValues, typeRef.min, typeRef.max, typeRef.defaultValue);
      elements.put(typeName, property);
    }
    return elements;
  }
View Full Code Here


        String rootModelId = modelParser.getRootModelId();
        for (Model model : models) {
          if (model.getId().equals(rootModelId)) {
            Map<String, Property> modelProps = model.getProperties();
            for (Map.Entry<String, Property> entry : modelProps.entrySet()) {
              Property property = entry.getValue();
              String renderedParamName = entry.getKey();
              String fawFieldName = property.getRawFieldName();

              Boolean allowMultiple = getAllowMultiple(paramCategory, fawFieldName, csvParams);
              Boolean required = getRequired(paramCategory, fawFieldName, property.getType(), optionalParams, requiredParams);

              String itemsRef = property.getItems() == null ? null : property.getItems().getRef();
              String itemsType = property.getItems() == null ? null : property.getItems().getType();

              ApiParameter param = new ApiParameter(property.getParamCategory(), renderedParamName, required, allowMultiple, property.getType(),
                  property.getFormat(), property.getDescription(), itemsRef, itemsType, property.getUniqueItems(),
                  property.getAllowableValues(), property.getMinimum(), property.getMaximum(), property.getDefaultValue());

              parameters.add(param);
            }
            break;
          }
View Full Code Here

TOP

Related Classes of com.carma.swagger.doclet.model.Property

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.