Open mosoriob opened 1 year ago
this seems to be an issue with the current ajv version, a workaround to fix this is to manually add example
as a keyword to your loopback 4 application
src/application.ts
this.bind<AjvKeyword>("ajv.keywords.example").to({ keyword: "example" }).tag(RestTags.AJV_KEYWORD);
Your workaround works! Thanks! :)
@nflaig what to write if I want to remove any defined keyword like minimum or maximum. So that I can redefine that
No idea if that works, naively would assume just overriding it but that might not be possible if it already exists. There might be other ways but that's rather ajv specific.
Let's wait and see if there is a response in the issue you opened
Describe the bug
Steps to reproduce
Current Behavior
The test fail with error:
Link to reproduction sandbox
https://github.com/mosoriob/loopback-next.git
More details
The API was generated using
lb4 openapi
Logs
No response
Additional information
Similar to: https://github.com/loopbackio/loopback-next/issues/4939
Reproduction
https://github.com/mosoriob/loopback-next.git