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
JsonSchemaobject; - Convert
JsonSchemaintoMostJsonSchema; - 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:
MostObjectPropertyMostValueProperty, which is inherited in:BooleanMostPropertyStringMostPropertyEnumMostPropertyNumberMostPropertyArrayMostProperty
MostProperty is open for extension if special property needs to be implemented.