in geronimo-openapi-impl/src/main/java/org/apache/geronimo/microprofile/openapi/impl/processor/SchemaProcessor.java [538:557]
private Object toType(final String s, final org.eclipse.microprofile.openapi.models.media.Schema.SchemaType type) {
if (type == null || s.isEmpty()) {
return null;
}
switch (type) {
case STRING:
return s;
case INTEGER:
return Integer.valueOf(s);
case NUMBER:
return Double.valueOf(s);
case BOOLEAN:
return Boolean.parseBoolean(s);
case OBJECT:
case ARRAY:
// todo using jsonb
default:
return null;
}
}