Skip to content

Conversation

@thejuan
Copy link
Contributor

@thejuan thejuan commented Jan 3, 2022

A schema with an empty definitions object causes jsonSchemaWithoutRequired to throw

 TypeError: Cannot convert undefined or null to object
      at Function.assign (<anonymous>)
      at jsonSchemaWithoutRequired (lib/model/AjvValidator.js:262:20)
      at AjvValidator.compilePatchValidator (lib/model/AjvValidator.js:136:18)
      at AjvValidator.getValidator (lib/model/AjvValidator.js:120:26)
@lehni lehni merged commit d56e4c7 into Vincit:master Jun 30, 2023
@lehni
Copy link
Collaborator

lehni commented Jul 20, 2023

Released in v3.0.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants