public class JsonSchemaUtils extends Object
| Constructor and Description |
|---|
JsonSchemaUtils() |
| Modifier and Type | Method and Description |
|---|---|
static com.fasterxml.jackson.databind.node.ObjectNode |
copyEnvelopeWithoutPayload(com.fasterxml.jackson.databind.node.ObjectNode jsonValue) |
static JsonSchema |
copyOf(JsonSchema schema) |
static com.fasterxml.jackson.databind.node.ObjectNode |
envelope(com.fasterxml.jackson.databind.JsonNode schema,
com.fasterxml.jackson.databind.JsonNode payload) |
static com.fasterxml.jackson.databind.node.ObjectNode |
envelope(com.fasterxml.jackson.databind.JsonNode schema,
List<SchemaReference> references,
Map<String,com.fasterxml.jackson.databind.JsonNode> resolvedReferences,
com.fasterxml.jackson.databind.JsonNode payload) |
static com.fasterxml.jackson.databind.node.ObjectNode |
envelope(JsonSchema schema,
com.fasterxml.jackson.databind.JsonNode payload) |
static com.fasterxml.jackson.databind.JsonNode |
findMatchingEntity(com.fasterxml.jackson.databind.JsonNode node,
SchemaEntity entity) |
static com.fasterxml.jackson.databind.JsonNode |
findNodeFromNameBuilder(com.fasterxml.jackson.databind.JsonNode node,
LinkedList<String> identifiersList) |
static JsonSchema |
getSchema(Object object) |
static JsonSchema |
getSchema(Object object,
SchemaRegistryClient client) |
static JsonSchema |
getSchema(Object object,
SpecificationVersion specVersion,
boolean useOneofForNullables,
boolean failUnknownProperties,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
SchemaRegistryClient client) |
static JsonSchema |
getSchema(Object object,
SpecificationVersion specVersion,
boolean useOneofForNullables,
boolean failUnknownProperties,
SchemaRegistryClient client) |
static JsonSchema |
getSchema(Object object,
SpecificationVersion specVersion,
boolean useOneofForNullables,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
SchemaRegistryClient client) |
static JsonSchema |
getSchema(Object object,
SpecificationVersion specVersion,
boolean useOneofForNullables,
SchemaRegistryClient client) |
static JsonSchema |
getSchema(Object object,
SpecificationVersion specVersion,
List<String> scanPackages,
boolean useOneofForNullables,
boolean failUnknownProperties,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
SchemaRegistryClient client) |
static Object |
getValue(Object object) |
static boolean |
isEnvelope(Object object) |
static byte[] |
toJson(Object value) |
static Object |
toObject(com.fasterxml.jackson.databind.JsonNode value,
JsonSchema schema) |
static Object |
toObject(com.fasterxml.jackson.databind.JsonNode value,
JsonSchema schema,
boolean validate) |
static Object |
toObject(String value,
JsonSchema schema) |
static Object |
toObject(String value,
JsonSchema schema,
boolean validate) |
public static com.fasterxml.jackson.databind.node.ObjectNode envelope(JsonSchema schema, com.fasterxml.jackson.databind.JsonNode payload)
public static com.fasterxml.jackson.databind.node.ObjectNode envelope(com.fasterxml.jackson.databind.JsonNode schema,
com.fasterxml.jackson.databind.JsonNode payload)
public static com.fasterxml.jackson.databind.node.ObjectNode envelope(com.fasterxml.jackson.databind.JsonNode schema,
List<SchemaReference> references,
Map<String,com.fasterxml.jackson.databind.JsonNode> resolvedReferences,
com.fasterxml.jackson.databind.JsonNode payload)
public static boolean isEnvelope(Object object)
public static com.fasterxml.jackson.databind.node.ObjectNode copyEnvelopeWithoutPayload(com.fasterxml.jackson.databind.node.ObjectNode jsonValue)
public static JsonSchema copyOf(JsonSchema schema)
public static JsonSchema getSchema(Object object) throws IOException
IOExceptionpublic static JsonSchema getSchema(Object object, SchemaRegistryClient client) throws IOException
IOExceptionpublic static JsonSchema getSchema(Object object, SpecificationVersion specVersion, boolean useOneofForNullables, SchemaRegistryClient client) throws IOException
IOExceptionpublic static JsonSchema getSchema(Object object, SpecificationVersion specVersion, boolean useOneofForNullables, boolean failUnknownProperties, SchemaRegistryClient client) throws IOException
IOExceptionpublic static JsonSchema getSchema(Object object, SpecificationVersion specVersion, boolean useOneofForNullables, com.fasterxml.jackson.databind.ObjectMapper objectMapper, SchemaRegistryClient client) throws IOException
IOExceptionpublic static JsonSchema getSchema(Object object, SpecificationVersion specVersion, boolean useOneofForNullables, boolean failUnknownProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper, SchemaRegistryClient client) throws IOException
IOExceptionpublic static JsonSchema getSchema(Object object, SpecificationVersion specVersion, List<String> scanPackages, boolean useOneofForNullables, boolean failUnknownProperties, com.fasterxml.jackson.databind.ObjectMapper objectMapper, SchemaRegistryClient client) throws IOException
IOExceptionpublic static Object toObject(com.fasterxml.jackson.databind.JsonNode value, JsonSchema schema) throws IOException
IOExceptionpublic static Object toObject(com.fasterxml.jackson.databind.JsonNode value, JsonSchema schema, boolean validate) throws IOException
IOExceptionpublic static Object toObject(String value, JsonSchema schema) throws IOException
IOExceptionpublic static Object toObject(String value, JsonSchema schema, boolean validate) throws IOException
IOExceptionpublic static byte[] toJson(Object value) throws IOException
IOExceptionpublic static com.fasterxml.jackson.databind.JsonNode findMatchingEntity(com.fasterxml.jackson.databind.JsonNode node,
SchemaEntity entity)
public static com.fasterxml.jackson.databind.JsonNode findNodeFromNameBuilder(com.fasterxml.jackson.databind.JsonNode node,
LinkedList<String> identifiersList)
Copyright © 2026 Confluent, Inc.. All rights reserved.