Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions jooby-raml/src/main/java/org/jooby/internal/raml/RamlType.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,16 @@ private static RamlType parse(final Type type, final Map<Type, RamlType> ctx) {
Field[] fields = rawType.getDeclaredFields();
Map<String, RamlType> props = new LinkedHashMap<>();
for (Field field : fields) {
RamlType ftype = parse(field.getGenericType(), ctx);
if (field.getType().isArray()) {
String ctype = ramlTypeName(field.getType());
ftype.type = (ctype == null ? ftype.type() : ctype) + "[]";
ftype.name = null;
ftype.properties = null;
if(!field.getName().startsWith("_")) { // only not hidden properties
RamlType ftype = parse(field.getGenericType(), ctx);
if (field.getType().isArray()) {
String ctype = ramlTypeName(field.getType());
ftype.type = (ctype == null ? ftype.type() : ctype) + "[]";
ftype.name = null;
ftype.properties = null;
}
props.put(field.getName(), ftype);
}
props.put(field.getName(), ftype);
}
ramlType.properties = props;
}
Expand Down