mapped_json_schema 0.0.1
mapped_json_schema: ^0.0.1 copied to clipboard
Highly customizable JSON Schema object model mapper.
mapped_json_schema
Highly customizable JSON Schema object model mapper.
Usage #
- Create
JsonSchemaobject; - Convert
JsonSchemaintoMappedJsonSchema; - Use it!
For more information on the usage, please, check example/.
Implementation #
MappedJsonSchemaParser is designed to convert JSON Schema into MappedJsonSchema. It has a customMappers parameter which is allowing to customize property-to-mapped-object mapping.
MappedJsonSchema contains the original JsonSchema object for the reference and a list of mapped properties MappedProperty.
MappedProperty have the following implementations:
MappedObjectPropertyMappedValueProperty, which is inherited in:BooleanMappedPropertyStringMappedPropertyEnumMappedPropertyNumberMappedPropertyArrayMappedProperty
MappedProperty is open for extension if special property needs to be implemented.