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

Recursive json schemas won't work at all #143

Open
hwangar opened this issue Oct 21, 2024 · 0 comments
Open

Recursive json schemas won't work at all #143

hwangar opened this issue Oct 21, 2024 · 0 comments

Comments

@hwangar
Copy link

hwangar commented Oct 21, 2024

Sample schema:

{
  "oneOf": [
    {
      "type": "object",
      "required": ["type", "text"],
      "properties": {
        "type": {
          "const": "text"
        },
        "text": {
          "type": "string"
        }
      }
    },
    {
      "type": "object",
      "required": ["type"],
      "properties": {
        "type": {
          "const": "view"
        },
        "children": {
          "$ref": "#"
        }
      }
    }
  ]
}

Sample document:
{ "sample": true}

Errors: none

Cause: in validation, pointer code doesn't seem to handle ok the refs...

image

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