ruzicka/to-json-schema

Fail to create schema of array of strings

SSNikolaevich opened this issue · 1 comments

Conversion attempt of ["1", "two", "3", "four"] to schema throws exception with message "Failed to load schema: Cannot read properties of null (reading 'type')".
The cause is that mergeSchemaObjs returns null because list items schemas restored as {"type": "string", "format": "utc-millisec"} for "1" and "3", and {"type": "string"} for the rest.

Were you able to find a fix for this?