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

Explain referenced/referring schemas #609

Merged
merged 2 commits into from
Jun 27, 2018

Conversation

handrews
Copy link
Contributor

@handrews handrews commented Jun 17, 2018

For several upcoming features, we need better language to
talk about the schemas on either side of a "$ref" or similar
linking keyword.

In particular, annotation collection (#530) interacts with references,
and calling referenced schemas "subschemas" is confusing and
technically inaccurate.

For several upcoming features, we need better language to
talk about the schemas on either side of a "$ref" or similar
linking keyword.

In particular, annotation collection interacts with references,
and calling referenced schemas "subschemas" is confusing and
technically inaccurate.
with an instance.
<cref>
Assuming some form of dynamic reference keyword is introduced
related to GitHub issue #558, this section will be updated
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to specify the repo here? If it's specified elsewhere in the doc, then probably not.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's linked in the "Note to Readers" section near the very top. In past CREFs we have just used issue numbers. I only reference issues in CREFs, and I don't worry about the formality of those as much as they're intended as asides that will be removed.

@handrews handrews changed the title Explain refereced/referring schemas Explain referenced/referring schemas Jun 17, 2018
@handrews handrews changed the base branch from annot-results to master June 21, 2018 04:42
<xref target="ref">"$ref"</xref>, the referred schema can be determined
by static analysis of the schema document. Others may take evaluation
context into account, and only be resolvable in the process of evaluating
with an instance.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! Really adds clarity.

@Relequestual
Copy link
Member

Relequestual commented Jun 27, 2018

@handrews I think this can now be merged. There's nothing contravertial here.

@handrews handrews merged commit 5f2fbb7 into json-schema-org:master Jun 27, 2018
@handrews handrews deleted the referenced branch December 17, 2018 02:44
@gregsdennis gregsdennis added clarification Items that need to be clarified in the specification and removed Type: Maintenance labels Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clarification Items that need to be clarified in the specification core
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants