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

Split "requiredDependencies" out of "dependencies" #573

Merged
merged 2 commits into from
Apr 4, 2018

Conversation

handrews
Copy link
Contributor

"dependencies", with the schema behavior, moves to the validation
spec with the other applicators. "requiredDependencies", with
the property array behavior, stays in validation as an assertion
alongside "required"

"dependencies", with the schema behavior, moves to the validation
spec with the other applicators.  "requiredDependencies", with
the property array behavior, stays in validation as an assertion
alongside "required"
for further discussion. Further feedback is encouraged.
</cref>
This keyword specifies property requirements that are conditional
based on the presence of other properties.
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure this sentence is useful considering the one that follows (in fact, I cannot easily read it (but maybe it's because I'm not native English)). Also, most keyword's description start out by "The value of this keyword MUST be ..." so this one would be (is already) an exception with this sentence. Not a big deal, though :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good points, let me see if I can rework it to be more consistent and clear.

Use language based on a combination of "required" and "properties",
and make the simple description (the 2nd paragraph) more clear.
@handrews
Copy link
Contributor Author

handrews commented Apr 4, 2018

@dlax how does this version look?

@dlax
Copy link
Member

dlax commented Apr 4, 2018

Looks good 👍

@handrews handrews merged commit abca457 into json-schema-org:dep-split-base Apr 4, 2018
@handrews handrews deleted the dep-split branch May 24, 2018 04:34
@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 Priority: Medium validation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants