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
I have a model like:
@ApiModel({ description: "A Course", name: "Course", }) export class CourseModel { @ApiModelProperty({ required: true, }) id!: number; @ApiModelProperty({ required: true, }) students: Array<Student>; }
And the rendered swagger.json comes out with:
... "Course":{ "type":"object", "properties":{ "id":{"type":"number"}, "students":{"type":"array"} }, "required":["id","students"], "description":"A Course" } ...
It would seem that Course.properties.students is missing an element items that should contain a reference to the Student model.
Course.properties.students
items
Student
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have a model like:
And the rendered swagger.json comes out with:
It would seem that
Course.properties.students
is missing an elementitems
that should contain a reference to theStudent
model.The text was updated successfully, but these errors were encountered: