most_schema_parser 1.0.0
most_schema_parser: ^1.0.0 copied to clipboard
Highly customizable JSON Schema object model mapper and validator.
MOST Schema Parser
Highly customizable JSON Schema object model mapper.
Usage #
- Create
JsonSchema
object; - Convert
JsonSchema
intoMostJsonSchema
; - Use it!
For more information on the usage, please, check example/
.
Implementation #
MostJsonSchemaParser
is designed to convert JSON Schema into MostJsonSchema
. It has a customMappers
parameter which is allowing to customize property-to-most-object mapping.
MostJsonSchema
contains the original JsonSchema
object for the reference and a list of most properties MostProperty
.
MostProperty
have the following implementations:
MostObjectProperty
MostValueProperty
, which is inherited in:BooleanMostProperty
StringMostProperty
EnumMostProperty
NumberMostProperty
ArrayMostProperty
MostProperty
is open for extension if special property needs to be implemented.