SchemaType

Represents a sealed interface for defining schema types in a JSON structure.

This interface serves as the base type for different schema representations, allowing components to handle various schema variations, such as combinations of multiple types or individual JSON types.

Implementing Types:

  • AnyOf: Represents a type that is a combination of multiple JSON types.

  • JsonType: Enum representing standard JSON types (ARRAY, OBJECT, NUMBER, BOOLEAN, INTEGER, NULL, STRING).

Serialization and Deserialization:

  • Custom serialization and deserialization are handled using the Serializer object.

  • Deserialization parses a GenericElement, which may represent different JSON structures.

  • Serialization encodes the schema type into a compatible JSON format.

Report a problem

Inheritors

Types

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard