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

OneOf misimplemented #34

Open
sztanko opened this issue Mar 16, 2019 · 0 comments
Open

OneOf misimplemented #34

sztanko opened this issue Mar 16, 2019 · 0 comments

Comments

@sztanko
Copy link

sztanko commented Mar 16, 2019

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "one_of_fail",

  "properties": {
    "hosts": {
      "oneOf": [
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        {
          "type": "string"
        }
      ]
    }
  }
}

Fails with:

    property_type = property_["type"]
KeyError: 'type'

If we add type to it, it still fails, as it expects $ref in the oneOf items.

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

1 participant