Flattens a JsonSchema into a usable Map of Strings and Attributes.
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.
map of schema keys to JSON Schema properties
updated map where product types are splitted