Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined type "undefined" error for a valid schema #478

Open
edthompson-nf opened this issue Jul 11, 2023 · 1 comment
Open

undefined type "undefined" error for a valid schema #478

edthompson-nf opened this issue Jul 11, 2023 · 1 comment

Comments

@edthompson-nf
Copy link

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"
}

@duranbe
Copy link

duranbe commented Mar 31, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants