Open jsoldi opened 5 years ago
If you use JsonSchema4.FromSampleJson to infer schema from this JSON { "hi": [[10, 20], [30, 40]] }, I would expect it to detect that its an array of array of integers. But instead I get an array of type-less arrays:
JsonSchema4.FromSampleJson
{ "hi": [[10, 20], [30, 40]] }
{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "hi": { "type": "array", "items": { "$ref": "#/definitions/Anonymous3" } } }, "definitions": { "Hi": { "type": "integer" }, "Anonymous2": { "type": "integer" }, "Anonymous3": { "type": "array" } } }
Not sure whether this is by design or a bug.
This case is not yet implemented...
If you use
JsonSchema4.FromSampleJson
to infer schema from this JSON{ "hi": [[10, 20], [30, 40]] }
, I would expect it to detect that its an array of array of integers. But instead I get an array of type-less arrays:Not sure whether this is by design or a bug.