public abstract class JsonUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_ID_PREFIX |
static String |
SCHEMA4 |
| Constructor and Description |
|---|
JsonUtils() |
| Modifier and Type | Method and Description |
|---|---|
static com.fasterxml.jackson.databind.ObjectMapper |
createObjectMapper() |
static com.fasterxml.jackson.databind.ObjectMapper |
createSchemaObjectMapper() |
static String |
getBasicApiJsonSchema() |
static com.fasterxml.jackson.module.jsonSchema.JsonSchema |
getGlobalObjectsJsonSchemaAsSchema(GlobalObjects globalObjects) |
static com.fasterxml.jackson.module.jsonSchema.JsonSchema |
getJsonSchemaAsSchema(Set<com.fasterxml.jackson.module.jsonSchema.JsonSchema> allSchemas,
String id) |
static String |
getJsonSchemaString(com.fasterxml.jackson.databind.ObjectMapper mapper,
Set<com.fasterxml.jackson.module.jsonSchema.JsonSchema> allSchemas,
String id) |
static Set<com.fasterxml.jackson.module.jsonSchema.JsonSchema> |
getSObjectJsonSchema(com.fasterxml.jackson.databind.ObjectMapper objectMapper,
SObjectDescription description,
String idPrefix,
boolean addQuerySchema) |
static String |
getSObjectJsonSchema(SObjectDescription description) |
static String |
getSObjectJsonSchema(SObjectDescription description,
boolean addQuerySchema) |
static com.fasterxml.jackson.module.jsonSchema.JsonSchema |
getSObjectJsonSchemaAsJson(SObjectDescription description) |
static com.fasterxml.jackson.module.jsonSchema.JsonSchema |
getSObjectJsonSchemaAsSchema(SObjectDescription description,
boolean addQuerySchema) |
static com.fasterxml.jackson.databind.ObjectMapper |
withNullSerialization(com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
public static final String SCHEMA4
public static final String DEFAULT_ID_PREFIX
public static com.fasterxml.jackson.databind.ObjectMapper createObjectMapper()
public static String getBasicApiJsonSchema() throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic static String getJsonSchemaString(com.fasterxml.jackson.databind.ObjectMapper mapper, Set<com.fasterxml.jackson.module.jsonSchema.JsonSchema> allSchemas, String id) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic static com.fasterxml.jackson.module.jsonSchema.JsonSchema getJsonSchemaAsSchema(Set<com.fasterxml.jackson.module.jsonSchema.JsonSchema> allSchemas, String id)
public static String getSObjectJsonSchema(SObjectDescription description) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic static com.fasterxml.jackson.module.jsonSchema.JsonSchema getSObjectJsonSchemaAsJson(SObjectDescription description) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic static String getSObjectJsonSchema(SObjectDescription description, boolean addQuerySchema) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic static com.fasterxml.jackson.module.jsonSchema.JsonSchema getSObjectJsonSchemaAsSchema(SObjectDescription description, boolean addQuerySchema) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic static Set<com.fasterxml.jackson.module.jsonSchema.JsonSchema> getSObjectJsonSchema(com.fasterxml.jackson.databind.ObjectMapper objectMapper, SObjectDescription description, String idPrefix, boolean addQuerySchema) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionpublic static com.fasterxml.jackson.databind.ObjectMapper createSchemaObjectMapper()
public static com.fasterxml.jackson.module.jsonSchema.JsonSchema getGlobalObjectsJsonSchemaAsSchema(GlobalObjects globalObjects)
public static com.fasterxml.jackson.databind.ObjectMapper withNullSerialization(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Apache Camel