Class JsonSchemaProperties

    • Field Detail

      • VALIDATE_SCHEMA

        public static final String VALIDATE_SCHEMA
        Boolean flag that enables JSON schema validation during serialization/deserialization. When set to true, the serializer/deserializer will validate JSON data against its schema. This validation ensures that the JSON data conforms to the expected schema structure. The default is true.
        See Also:
        Constant Field Values
      • TYPE_PROPERTY

        public static final String TYPE_PROPERTY
        Specifies the JSON schema property name that contains the Java type class path for deserialization. The JsonSchemaDeserializer uses this JSON schema property to determine the target Java class when deserializing. The default is "javaType".
        See Also:
        Constant Field Values
    • Constructor Detail

      • JsonSchemaProperties

        public JsonSchemaProperties()
        Constructs a new JsonSchemaProperties instance with default properties.
      • JsonSchemaProperties

        public JsonSchemaProperties​(Map<String,​?> map)
        Constructs a new JsonSchemaProperties instance with default properties then applies properties from the passed in map.
        Parameters:
        map - A map that is applied after the default properties are applied.
    • Method Detail

      • getDefaults

        public static Map<String,​Object> getDefaults()
        Gets a copy of the default JsonSchemaProperties properties. This contains defaults defined in SerdeProperties.
        Returns:
        A copy of the default set properties.
        See Also:
        SerdeProperties
      • getValidateSchema

        public boolean getValidateSchema()
        Gets whether JSON schema validation is enabled for serialization and deserialization. When enabled, JSON data will be validated against its schema during processing.
        Returns:
        true if JSON schema validation is enabled, false otherwise
      • getTypeProperty

        public String getTypeProperty()
        Gets the JSON schema property name that contains the Java type class path for deserialization. The JsonSchemaDeserializer uses this property to determine the target Java class.
        Returns:
        the name of the JSON schema property containing the Java type, or returns the default value if not configured