svelte-schema-form icon indicating copy to clipboard operation
svelte-schema-form copied to clipboard

`TypeError: can't convert undefined to object` error when `object` type has no `properties`

Open DetachHead opened this issue 2 years ago • 0 comments

{
  "type": "object"
}

Uncaught (in promise) TypeError: can't convert undefined to object

it's valid to have no properties key on object types, for example when using additionalProperties:

{
  "type": "object",
  "additionalProperties": {
    "type": "string"
  }
}

DetachHead avatar Feb 22 '23 05:02 DetachHead