public class JsonSchema extends Object implements ParsedSchema
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_BASE_URI |
static String |
TAGS |
static String |
TYPE |
RESERVED| Constructor and Description |
|---|
JsonSchema(com.fasterxml.jackson.databind.JsonNode jsonNode) |
JsonSchema(com.fasterxml.jackson.databind.JsonNode jsonNode,
List<SchemaReference> references,
Map<String,String> resolvedReferences,
Integer version) |
JsonSchema(com.fasterxml.jackson.databind.JsonNode jsonNode,
List<SchemaReference> references,
Map<String,String> resolvedReferences,
Metadata metadata,
RuleSet ruleSet,
Integer version) |
JsonSchema(org.everit.json.schema.Schema schemaObj) |
JsonSchema(org.everit.json.schema.Schema schemaObj,
Integer version) |
JsonSchema(String schemaString) |
JsonSchema(String schemaString,
List<SchemaReference> references,
Map<String,String> resolvedReferences,
Integer version) |
JsonSchema(String schemaString,
List<SchemaReference> references,
Map<String,String> resolvedReferences,
Metadata metadata,
RuleSet ruleSet,
Integer version) |
| Modifier and Type | Method and Description |
|---|---|
String |
canonicalString() |
JsonSchema |
copy() |
JsonSchema |
copy(Integer version) |
ParsedSchema |
copy(Map<SchemaEntity,Set<String>> tagsToAdd,
Map<SchemaEntity,Set<String>> tagsToRemove) |
JsonSchema |
copy(Metadata metadata,
RuleSet ruleSet) |
JsonSchema |
copyIgnoringModernDialects() |
Object |
copyMessage(Object message) |
boolean |
equals(Object o) |
String |
formattedString(String format) |
Object |
fromJson(com.fasterxml.jackson.databind.JsonNode json) |
protected Map<URI,String> |
getPrepopulatedMappings() |
String |
getString(String key) |
boolean |
has(String key) |
int |
hashCode() |
boolean |
hasTopLevelField(String field) |
Map<SchemaEntity,Set<String>> |
inlineTaggedEntities() |
Set<String> |
inlineTags() |
List<String> |
isBackwardCompatible(ParsedSchema previousSchema) |
boolean |
isIgnoreModernDialects() |
Metadata |
metadata() |
String |
name() |
JsonSchema |
normalize() |
org.everit.json.schema.Schema |
rawSchema() |
List<SchemaReference> |
references() |
Map<String,String> |
resolvedReferences() |
RuleSet |
ruleSet() |
String |
schemaType() |
com.fasterxml.jackson.databind.JsonNode |
toJson(Object message) |
com.fasterxml.jackson.databind.JsonNode |
toJsonNode() |
String |
toString() |
Object |
transformMessage(RuleContext ctx,
FieldTransform transform,
Object message) |
void |
validate(boolean strict) |
com.fasterxml.jackson.databind.JsonNode |
validate(com.fasterxml.jackson.databind.JsonNode value) |
static com.fasterxml.jackson.databind.JsonNode |
validate(com.github.erosb.jsonsKema.Schema schema,
com.fasterxml.jackson.databind.JsonNode value) |
static com.fasterxml.jackson.databind.JsonNode |
validate(org.everit.json.schema.Schema schema,
Object value) |
Integer |
version() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcanLookup, deepEquals, equivalent, getReservedFields, isCompatible, tags, validatepublic static final String DEFAULT_BASE_URI
public static final String TYPE
public static final String TAGS
public JsonSchema(com.fasterxml.jackson.databind.JsonNode jsonNode)
public JsonSchema(String schemaString)
public JsonSchema(com.fasterxml.jackson.databind.JsonNode jsonNode,
List<SchemaReference> references,
Map<String,String> resolvedReferences,
Integer version)
public JsonSchema(String schemaString, List<SchemaReference> references, Map<String,String> resolvedReferences, Integer version)
public JsonSchema(com.fasterxml.jackson.databind.JsonNode jsonNode,
List<SchemaReference> references,
Map<String,String> resolvedReferences,
Metadata metadata,
RuleSet ruleSet,
Integer version)
public JsonSchema(String schemaString, List<SchemaReference> references, Map<String,String> resolvedReferences, Metadata metadata, RuleSet ruleSet, Integer version)
public JsonSchema(org.everit.json.schema.Schema schemaObj)
public JsonSchema(org.everit.json.schema.Schema schemaObj,
Integer version)
public JsonSchema copy()
copy in interface ParsedSchemapublic JsonSchema copy(Integer version)
copy in interface ParsedSchemapublic JsonSchema copy(Metadata metadata, RuleSet ruleSet)
copy in interface ParsedSchemapublic ParsedSchema copy(Map<SchemaEntity,Set<String>> tagsToAdd, Map<SchemaEntity,Set<String>> tagsToRemove)
copy in interface ParsedSchemapublic JsonSchema copyIgnoringModernDialects()
public com.fasterxml.jackson.databind.JsonNode toJsonNode()
public org.everit.json.schema.Schema rawSchema()
rawSchema in interface ParsedSchemapublic boolean hasTopLevelField(String field)
hasTopLevelField in interface ParsedSchemapublic String schemaType()
schemaType in interface ParsedSchemapublic String name()
name in interface ParsedSchemapublic boolean has(String key)
public String canonicalString()
canonicalString in interface ParsedSchemapublic String formattedString(String format)
formattedString in interface ParsedSchemapublic Integer version()
version in interface ParsedSchemapublic List<SchemaReference> references()
references in interface ParsedSchemapublic Metadata metadata()
metadata in interface ParsedSchemapublic RuleSet ruleSet()
ruleSet in interface ParsedSchemapublic boolean isIgnoreModernDialects()
public JsonSchema normalize()
normalize in interface ParsedSchemapublic void validate(boolean strict)
validate in interface ParsedSchemapublic com.fasterxml.jackson.databind.JsonNode validate(com.fasterxml.jackson.databind.JsonNode value)
throws com.fasterxml.jackson.core.JsonProcessingException,
org.everit.json.schema.ValidationException
com.fasterxml.jackson.core.JsonProcessingExceptionorg.everit.json.schema.ValidationExceptionpublic static com.fasterxml.jackson.databind.JsonNode validate(com.github.erosb.jsonsKema.Schema schema,
com.fasterxml.jackson.databind.JsonNode value)
throws com.fasterxml.jackson.core.JsonProcessingException,
org.everit.json.schema.ValidationException
com.fasterxml.jackson.core.JsonProcessingExceptionorg.everit.json.schema.ValidationExceptionpublic static com.fasterxml.jackson.databind.JsonNode validate(org.everit.json.schema.Schema schema,
Object value)
throws com.fasterxml.jackson.core.JsonProcessingException,
org.everit.json.schema.ValidationException
com.fasterxml.jackson.core.JsonProcessingExceptionorg.everit.json.schema.ValidationExceptionpublic List<String> isBackwardCompatible(ParsedSchema previousSchema)
isBackwardCompatible in interface ParsedSchemapublic Object fromJson(com.fasterxml.jackson.databind.JsonNode json)
fromJson in interface ParsedSchemapublic com.fasterxml.jackson.databind.JsonNode toJson(Object message) throws IOException
toJson in interface ParsedSchemaIOExceptionpublic Object copyMessage(Object message) throws IOException
copyMessage in interface ParsedSchemaIOExceptionpublic Object transformMessage(RuleContext ctx, FieldTransform transform, Object message) throws RuleException
transformMessage in interface ParsedSchemaRuleExceptionpublic Set<String> inlineTags()
inlineTags in interface ParsedSchemapublic Map<SchemaEntity,Set<String>> inlineTaggedEntities()
inlineTaggedEntities in interface ParsedSchemaCopyright © 2026 Confluent, Inc.. All rights reserved.