to-json-schema icon indicating copy to clipboard operation
to-json-schema copied to clipboard

Fail to create schema of array of strings

Open SSNikolaevich opened this issue 3 years ago • 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.

SSNikolaevich avatar Nov 03 '22 09:11 SSNikolaevich

Were you able to find a fix for this?

suspreed avatar Dec 12 '23 21:12 suspreed