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
getModelSchemaRef
getModelSchemaRef was introduced as a helper for returning shared OpenAPI definitions. Now we can update our existing code to leverage it.
Sample usage:
class MyController { @get('/my', { responses: { '200': { description: 'Array of MyModel model instances', content: { 'application/json': { schema: getModelSchemaRef(MyModel), }, }, }, }, }) async find(): Promise<MyModel[]> { // etc. } }
lb4 controller
lb4 relation
The text was updated successfully, but these errors were encountered:
nabdelgadir
Successfully merging a pull request may close this issue.
Description / Steps to reproduce / Feature proposal
getModelSchemaRef
was introduced as a helper for returning shared OpenAPI definitions. Now we can update our existing code to leverage it.Sample usage:
Acceptance Criteria
lb4 controller
lb4 relation
lb4 relation
The text was updated successfully, but these errors were encountered: