com.fasterxml.jackson.databind.jsonschema

Class JsonSchema


  • Deprecated. 
    Since 2.2, we recommend use of external JSON Schema generator module

    @Deprecated
    public class JsonSchema
    extends Object
    Container for a logical JSON Schema instance. Internally schema data is stored as a JSON Tree (instance of JsonNode is the root of schema document)
    Author:
    Ryan Heaton
    See Also:
    JSON Schema
    • Constructor Detail

      • JsonSchema

        public JsonSchema(ObjectNode schema)
        Deprecated. 
        Main constructor for schema instances.

        This is the creator constructor used by Jackson itself when deserializing instances. It is so-called delegating creator, meaning that its argument will be bound by Jackson before constructor gets called.

    • Method Detail

      • getSchemaNode

        public ObjectNode getSchemaNode()
        Deprecated. 
        Method for accessing root JSON object of the contained schema.

        Note: this method is specified with JsonValue annotation to represent serialization to use; same as if explicitly serializing returned object.

        Returns:
        Root node of the schema tree
      • hashCode

        public int hashCode()
        Deprecated. 
        Overrides:
        hashCode in class Object
      • equals

        public boolean equals(Object o)
        Deprecated. 
        Overrides:
        equals in class Object
      • getDefaultSchemaNode

        public static JsonNode getDefaultSchemaNode()
        Deprecated. 
        Get the default schema node.
        Returns:
        The default schema node.

Copyright © 2008–2022 FasterXML. All rights reserved.