Skip to content

$data reference is not supported (compatibility with AJV) #474

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

Closed
thatside-zaraffa opened this issue Dec 27, 2017 · 3 comments
Closed

$data reference is not supported (compatibility with AJV) #474

thatside-zaraffa opened this issue Dec 27, 2017 · 3 comments

Comments

@thatside-zaraffa
Copy link

It is not possible to use $data reference in schema like:

"password": {
      "type": "string"
  },
  "passwordRepeat": {
      "type": "string",
      "const": { "$data": "#/register/password" 
}

AJV already supports this: ajv-validator/ajv#289
Discussion on this feature in JSON Schema repo: json-schema-org/json-schema-spec#51 #

@bighappyface
Copy link
Collaborator

PRs are welcome

@handrews
Copy link

Note that $data remains a controversial proposal and is not guaranteed to be added to the spec in the future. We will probably resolve it one way or the other during draft-09 (so, probably six months to a year from now, depending on how long it takes us to finish the current draft-08 work).

@thatside
Copy link

A little bit more info here (for those who will read this issue): opis/json-schema#1

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

4 participants