public interface IJSONAdapterFactory
Modifier and Type | Method and Description |
---|---|
Object |
adapt(Object adaptableObject)
adapt the given object to another object that is more suitable for JSON
|
Map<String,Object> |
getSchemaFields(Class<?> clazz,
Map<String,Object> schemasMap,
Map<String,Class<?>> usedSchemaNamesMap)
Get the schema type for the openapi
|
Object adapt(Object adaptableObject) throws Exception
adaptableObject
- the object to adaptException
Map<String,Object> getSchemaFields(Class<?> clazz, Map<String,Object> schemasMap, Map<String,Class<?>> usedSchemaNamesMap) throws Exception
clazz
- the typeschemasMap
- the map of already existing schemasusedSchemaNamesMap
- map of already used schema names to ensure unique namesException