Skip to content

Support for $ref? #1

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
chinshr opened this issue Apr 20, 2016 · 2 comments
Closed

Support for $ref? #1

chinshr opened this issue Apr 20, 2016 · 2 comments

Comments

@chinshr
Copy link

chinshr commented Apr 20, 2016

Do you have an ETA for $ref support as in the example below?

{
  "$schema": "http://json-schema.org/draft-04/schema#",

  "definitions": {
    "notes": {
      "type": "object",
      "properties": {
        "classification": {
          "type": "string",
          "enum": [
            "Lite",
            "Premium",
            "Plus",
          ]
        }
      }
    }
  },

  "title": "Customer Creative Brief",
  "type": "object",
  "properties": {
    "notes": { "$ref": "#/definitions/notes" }
  }
}
@nicklasb
Copy link
Member

nicklasb commented Apr 20, 2016

The situation is that the core it being broken out and that the community is preparing a 1.0 release.
As this is a FOSS-project, ETA:s are difficult, so I would not dare any precises guesses and probably others won't either.
It would be nice to get local $ref in 1.0, but it may also be in 1.1, the consensus seem to be that anyOf has slightly higher priority (as this can be worked around by server side resolution in many cases).

But I suppose we are talking a couple of months at the most, hopefully sooner.
The discussion has been here, with an apparent work around in the original discussion about you could use until the formal support is added.

json-schema-form/angular-schema-form#69

@Anthropic
Copy link
Member

@chinshr $ref is supported in the latest versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants