We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ajv-errors
Support ajv-errors in parameter schema.
So we can define custom error message.
@get('/v1/test/{_id}') public async test( @param({ in: 'path', name: '_id', schema: { type: 'number' }, errorMessage: '....' // <= }) _id: unknown ) { // ... }
TBD - will be filled by the team.
The text was updated successfully, but these errors were encountered:
We support ajv-errors for model properties, see https://loopback.io/doc/en/lb4/Model.html#custom-validation-rules-and-error-messages. Do you propose to extend it for OpenAPI parameters?
Sorry, something went wrong.
@raymondfeng Yes and using it in @param.
@param
PR #6285 will probably fix this issue.
Closing as done since PR #6285 has landed.
raymondfeng
No branches or pull requests
Suggestion
Support ajv-errors in parameter schema.
Use Cases
So we can define custom error message.
Examples
Acceptance criteria
TBD - will be filled by the team.
The text was updated successfully, but these errors were encountered: