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

Plugin does not work with strict mode #51

Open
amarkezic opened this issue Sep 8, 2022 · 0 comments
Open

Plugin does not work with strict mode #51

amarkezic opened this issue Sep 8, 2022 · 0 comments

Comments

@amarkezic
Copy link

Describe the bug
With ajv option set to strict mode the ajv-merge-patch package does not work. I receive the error:
strict mode: required property "value" is not defined at "#/properties/with/items/anyOf/0" (strictRequired)

To Reproduce
Steps to reproduce the behavior:

  1. Set ajv schema option { strict: true }
  2. Register the plugin
  3. Run fastify
  4. See error

Expected behavior
Package should work even with strict mode on

Do you have a proposed solution?
In this line a property is required which is not defined, after removing it locally everything worked as expected.

"required": [ "value" ]

Additional context and screenshots
Add any other context about the problem, and screenshots if applicable.

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

No branches or pull requests

1 participant