jooby raml ignore class hidden properties
@@ -150,6 +150,7 @@ public class RamlType {
Field[] fields = rawType.getDeclaredFields();
Map<String, RamlType> props = new LinkedHashMap<>();
for (Field field : fields) {
+ if(!field.getName().startsWith("_")) { // only not hidden properties
RamlType ftype = parse(field.getGenericType(), ctx);
if (field.getType().isArray()) {
String ctype = ramlTypeName(field.getType());
@@ -159,6 +160,7 @@ public class RamlType {
}
props.put(field.getName(), ftype);
}
+ }
ramlType.properties = props;
}
}
