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 propertyDependencies keyword #1143

Merged

Conversation

jdesrosiers
Copy link
Member

Resolves #1082

I tried to match the language used for dependentSchemas as much as possible given the similarity between the two keywords.

jsonschema-core.xml Outdated Show resolved Hide resolved
@karenetheridge
Copy link
Member

s/dependentProperties/propertyDependencies/ in commit message

@Relequestual Relequestual self-requested a review February 4, 2022 20:07
@Relequestual Relequestual added this to the draft-next milestone Feb 4, 2022
@jdesrosiers
Copy link
Member Author

(Force pushed to rebase and resolve conflicts)

Copy link
Member

@Relequestual Relequestual left a comment

Choose a reason for hiding this comment

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

I can see that you've tried to match the language from dependentSchemas, but I feel that's also poorly defined.
I think we need to do a lot of review to make sure application keywords talk about application and not validation so much, but that's outside the scope of this Issue and PR!

@Relequestual Relequestual merged commit 86d5739 into json-schema-org:draft-next Apr 6, 2022
@jdesrosiers jdesrosiers deleted the dependentproperties branch April 7, 2022 01:02
ChALkeR added a commit to ExodusMovement/schemasafe that referenced this pull request Oct 6, 2022
For now, causes an uncertainty from removeAdditional / useDefaults, but
that could be resolved/optimized in some certain situations later.

Refs: json-schema-org/json-schema-spec#1082
Refs: json-schema-org/json-schema-spec#1143
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Proposal: Add propertyDependencies keyword (aka discriminator)
3 participants