Closed kamathchethan closed 7 months ago
Fix for Issue: https://github.com/nijikokun/generate-schema/issues/55 With current implementation we array of array is not handled added support for the same.
Input
{ "filters": [ [ { "operator": "EQ", "value": "Ice Cold" } ] ] }
Output before fix
{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "filters": { "type": "array", "items": { "type": "array" } } }, "required": [ "filters" ] }
Output after fix
{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "filters": { "type": "array", "items": { "type": "array", "items": { "type": "object", "properties": { "operator": { "type": "string" }, "value": { "type": "string" } } } } } }, "required": [ "filters" ] }
Fix for Issue: https://github.com/nijikokun/generate-schema/issues/55 With current implementation we array of array is not handled added support for the same.
Input
Output before fix
Output after fix