public final class JsonSchemaHelper extends Object
Modifier and Type | Method and Description |
---|---|
static String |
getPrimitiveType(Class<?> type)
Gets the JSon schema primitive type.
|
static String |
getType(Class<?> type)
Gets the JSon schema type.
|
static List<Map<String,String>> |
parseJsonSchema(String group,
String json,
boolean parseProperties)
Parses the json schema to split it into a list or rows, where each row contains key value pairs with the metadata
|
public static String getType(Class<?> type)
type
- the java typepublic static String getPrimitiveType(Class<?> type)
type
- the java typepublic static List<Map<String,String>> parseJsonSchema(String group, String json, boolean parseProperties)
group
- the group to parse from such as component, componentProperties, or properties.json
- the jsonApache Camel