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

fix: use a merge strategy for oneOf/anyOfs during validation #1685

Merged
merged 1 commit into from
Apr 29, 2019

Conversation

janechu
Copy link
Collaborator

@janechu janechu commented Apr 18, 2019

Description

Uses a merge to correctly validate against oneOf/anyOf subschemas.

Motivation & context

Resolves #1684

Issue type checklist

  • Chore: A change that does not impact distributed packages.
  • Bug fix: A change that fixes an issue, link to the issue above.
  • New feature: A change that adds functionality.

Is this a breaking change?

  • This change causes current functionality to break.

Process & policy checklist

  • I have added tests for my changes.
  • I have tested my changes.
  • I have updated the project documentation to reflect my changes.
  • I have read the CONTRIBUTING documentation and followed the standards for this project.

@janechu janechu self-assigned this Apr 18, 2019
@janechu janechu force-pushed the users/janechu/add-merge-ability-for-oneOf-anyOfs branch 2 times, most recently from 04de5a5 to f87f389 Compare April 18, 2019 12:38
@janechu janechu force-pushed the users/janechu/add-merge-ability-for-oneOf-anyOfs branch from f87f389 to 1968ffb Compare April 19, 2019 16:29
@janechu janechu force-pushed the users/janechu/add-merge-ability-for-oneOf-anyOfs branch 2 times, most recently from 1c846e3 to 00b6ef2 Compare April 19, 2019 17:42
@stale
Copy link

stale bot commented Apr 24, 2019

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the warning:stale No recent activity within a reasonable amount of time label Apr 24, 2019
@janechu janechu force-pushed the users/janechu/add-merge-ability-for-oneOf-anyOfs branch from 00b6ef2 to 1dbe290 Compare April 29, 2019 18:32
@stale stale bot removed the warning:stale No recent activity within a reasonable amount of time label Apr 29, 2019
@codeclimate
Copy link

codeclimate bot commented Apr 29, 2019

Code Climate has analyzed commit 1dbe290 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 61.5% (50% is the threshold).

This pull request will bring the total coverage in the repository to 87.5% (0.2% change).

View more on Code Climate.

@janechu janechu merged commit 5c28382 into master Apr 29, 2019
@janechu janechu deleted the users/janechu/add-merge-ability-for-oneOf-anyOfs branch April 29, 2019 19:23
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.

oneOf/anyOf should merge all containing metadata with the selected subschema taking precedence
3 participants