Skip to content

Fix schema validation with OneOf or AnyOf - #54

Open
RoelKluin wants to merge 3 commits into
acornejo:masterfrom
NKI-GCF:master
Open

Fix schema validation with OneOf or AnyOf #54
RoelKluin wants to merge 3 commits into
acornejo:masterfrom
NKI-GCF:master

Conversation

@RoelKluin

Copy link
Copy Markdown

Current jjv's validate() does not update an object if OneOf or AnyOf is present in the root of the schema it was provided. With only test/test-suite.js and test/fixtures/oneOf.json patches applied, this is visible: npm test fails. The lib/jjv.js patch fixes this.

Roel Kluin added 3 commits February 9, 2015 18:32
…e the

reference to the original object.

Signed-off-by: Roel Kluin <r.kluin@nki.nl>
Signed-off-by: Roel Kluin <r.kluin@nki.nl>
Signed-off-by: Roel Kluin <r.kluin@nki.nl>
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.

1 participant