Closed cyplo closed 5 years ago
As per discussion with Lucian - decided to emit
"properties": { "age": { "anyOf": [ { "type": "string" }, { "type": "integer" } ] } }
instead of
"anyOf": [ { "properties": { "age": { "type": "string" } } }, { "properties": { "age": { "type": "integer" } } } ]
Both are valid JSONSchema but the first one allows for less misinterpretation on the user side and was also easier to emit.
See #62 and #15 for context.
Closing as per our chat and the decision to remove support for compound types completely as this is confusing.
As per discussion with Lucian - decided to emit
instead of
Both are valid JSONSchema but the first one allows for less misinterpretation on the user side and was also easier to emit.
See #62 and #15 for context.