guillotinaweb / ngx-schema-form

HTML form generation based on JSON Schema

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

undefined type "undefined" error for a valid schema

edthompson-nf opened this issue · comments

I am gettin an error undefined type "undefined" against my schema, but the schema is valid according to several online validators. I validated against v3, v4, v6, and v7. The failure is on the address property. I stripped the schema down to minimum for debugging.

{
  "$id": "http://ziti-edge.netfoundry.io/schemas/host.v1.schema.json",
  "additionalProperties": false,
  "properties": {
    "address": {
      "description": "Dial the specified ip address or hostname when a ziti client connects to the service.",
      "oneOf": [
        {
          "type": "string",
          "oneOf": [
            {
              "format": "ipv4"
            },
            {
              "format": "ipv6"
            }
          ]
        },
        {
          "format": "idn-hostname",
          "not": {
            "oneOf": [
              {
                "format": "ipv4"
              },
              {
                "format": "ipv6"
              }
            ]
          },
          "type": "string"
        }
      ]
    }
  },
  "type": "object"
}

Did not test but the type being in the oneOf seems wrong to me