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

Root ref in remote ref #13

Closed
epoberezkin opened this issue Jun 18, 2015 · 0 comments
Closed

Root ref in remote ref #13

epoberezkin opened this issue Jun 18, 2015 · 0 comments
Labels

Comments

@epoberezkin
Copy link
Member

Remote is added as http:https://localhost:1234/name.json:

{
  "definitions": {
    "orNull": {
      "anyOf": [
        { "type": "null" },
        { "$ref": "#" }
      ]
    }
  },
  "type": "string"
}

Schema:

{
  "id": "http:https://localhost:1234/object",
  "type": "object",
  "properties": {
    "name": { "$ref": "name.json#/definitions/orNull" }
  }
}

Data should be valid (and is invalid for ajv):

{  "name": "foo" }

Data should be invalid (and is valid for ajv):

{
  "name": {
    "name": null
  }
}

So essentially # in name.json refers to object.json instead of name.json.

epoberezkin added a commit that referenced this issue Jun 18, 2015
epoberezkin added a commit that referenced this issue Jun 18, 2015
@epoberezkin epoberezkin changed the title Root ref in remote ref - not working Root ref in remote ref Jun 18, 2015
epoberezkin added a commit that referenced this issue Jun 18, 2015
epoberezkin added a commit that referenced this issue Aug 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant