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

Add guidance on bundling and references #792

Closed
wants to merge 4 commits into from

Conversation

handrews
Copy link
Contributor

This should make clear what use cases are considered valid
and safe, vs when someone is on their own in terms of figuring
that out.

@handrews handrews added this to the draft-08 milestone Aug 25, 2019
@handrews handrews requested a review from a team August 25, 2019 05:37
This is going to be a powerful technique for generative use
cases, which have been observed either requiring references
(as opposed to subschemas) in certain places, or implementing
various sorts of inferencing around references on their own
or in conjunction with other keywords.

For example, one OpenAPI documentation tool assumes that
in an "allOf" of several references, the first is a base
class of some sort. While this is not correct behavior
by either JSON Schema or OpenAPI, it demonstrates a feature
built by making implicit assumptions about certain references.

This section provides a recommendation for making such
behavior explicit, and also guides writers of such tools
to the concept of extension vocabularies and annotations.
jsonschema-core.xml Outdated Show resolved Hide resolved
handrews and others added 2 commits September 8, 2019 16:18
This should make clear what use cases are considered valid
and safe, vs when someone is on their own in terms of figuring
that out.
Co-Authored-By: Phil Sturgeon <[email protected]>
@handrews
Copy link
Contributor Author

handrews commented Sep 8, 2019

I've moved these commits over to #791 along with the commits for #793 in order to tidy up how all of these stacked PRs need to merge. At this point, everything in #791 (which includes #792 and #793 now) was approved in its original PR by @Relequestual and/or @philsturgeon .

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

Successfully merging this pull request may close these issues.

3 participants