Flattens a JsonSchema into a usable Map of Strings and Attributes.
Flattens a JsonSchema into a usable Map of Strings and Attributes. - Will grab the first properties list and begin the recursive function - Will then return the validated object containing paths, attributes, etc
the JSON Schema which we will process
whether we need to split product types to different keys
a validated map of keys and attributes or a failure string
Split every product type into several primitive types.
Split every product type into several primitive types. Preserves nulls and other properties in all output types
eg. {"oneKey": {"type": "string,number,null"}} => {"oneKey_string": {"type": "string,null"}, " oneKey_number": {"type": "number,null"}}
map of schema keys to JSON Schema properties
updated map where product types are splitted
Flattens a JsonSchema into Strings representing the path to a field. This will be linked with a Map of attributes that the field possesses.