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

support $ref #18

Open
rpedela opened this issue Feb 21, 2018 · 0 comments
Open

support $ref #18

rpedela opened this issue Feb 21, 2018 · 0 comments

Comments

@rpedela
Copy link

rpedela commented Feb 21, 2018

I would love to see support added for the $ref keyword. I have several error messages that are used throughout my schemas, and it would be helpful to only have to define them once.

// error schema
{
  "$id": "errors",
  "string": "must be a string",
  "basicObject": {
    "type": { "$ref": "#/string" }
  }
}

// schema
{
  "type": "string",
  "errorMessage": { "$ref": "errors#/basicObject" }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant