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;
}