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

Name the split "dependencies" to "dependent*" #617

Merged
merged 1 commit into from
Jul 8, 2018

Conversation

handrews
Copy link
Contributor

Upon further discussion in #591 (comment), the grammatical
approach that is most intuitive was deemed to be that the
string array or schema's usage is dependent upon the presence
or absence of the instance property.

In at least some anecdotal reports, the nature and
direction of the "dependencies" concept proved confusing.
Others found it intuitive. The revised wording aims
to explicitly tie the dependency direction to the
naming convention.

In addition, while there was some debate over the most
migration-friendly strategy, the decision is to leave
the old form of "dependencies" available as an extension,
and for at least one draft use the meta-schema to avoid
its redefinition. Therefore both keywords resulting
from the split have been renamed.

"dependentSchemas" was also in the wrong section. As an
in-place conditional applicator, it belongs with "if", "then",
and "else". Not with the object child applicators.

Apparently, I had not made the meta-schema changes at all.
The "$comment" follows the precedent established from leaving
"definitions" in the meta-schema after the rename to "$defs".

Upon further discussion, the grammatical approach that
is most intuitive was deemed to be that the string array
or schema's usage is dependent upon the presence or
absence of the instance property.

In at least some anecdotal reports, the nature and
direction of the "dependencies" concept proved confusing.
Others found it intuitive.  The revised wording aims
to explicitly tie the dependency direction to the
naming convention.

In addition, while there was some debate over the most
migration-friendly strategy, the decision is to leave
the old form of "dependencies" available as an extension,
and for at least one draft use the meta-schema to avoid
its redefinition.  Therefore both keywords resulting
from the split have been renamed.

"dependentSchemas" was also in the wrong section.  As an
in-place conditional applicator, it belongs with "if", "then",
and "else".  Not with the object child applicators.

Apparently, I had not made the meta-schema changes at all.
The "$comment" follows the precedent established from leaving
"definitions" in the meta-schema after the rename to "$defs".
@handrews handrews requested a review from a team June 27, 2018 23:00
@handrews handrews merged commit 0cce8aa into json-schema-org:master Jul 8, 2018
@handrews handrews deleted the dep-schema branch September 24, 2018 14:35
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