You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(node:21691) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'type' of null
at Object.mergeSchemaObjs (.../node_modules/to-json-schema/lib/helpers.js:40:19)
at .../node_modules/to-json-schema/lib/index.js:93:24
at Array.reduce (<anonymous>)
at ToJsonSchema.getCommonArrayItemSchema (...node_modules/to-json-schema/lib/index.js:92:22)
Node version: v12.18.3
The text was updated successfully, but these errors were encountered:
I was able to reproduce both the problem and the mitigation. I'm not sure what that line does though, nor what the side-effects of removing it would be.
When I import doc which has two array items (with a property that has
null
) all works fine:but if I have 3 items in the array:
it fails with error:
Node version: v12.18.3
The text was updated successfully, but these errors were encountered: