Skip to content

Commit

Permalink
Merge pull request #630 from Azquelt/pathitems-model-fix
Browse files Browse the repository at this point in the history
Re-add change to model reader test lost in merge
  • Loading branch information
Azquelt authored Jun 6, 2024
2 parents 0d63cfe + 09270cc commit d927a38
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,16 @@ public OpenAPI buildModel() {
.title("id")
.description("id of the new booking")
.addType(
Schema.SchemaType.STRING)))))))));
Schema.SchemaType.STRING))))))))
.addPathItem("/refpath/{id}", OASFactory.createPathItem()
.ref("idCrud") // Note PathItem allows ref with other properties
.GET(OASFactory.createOperation()
.responses(OASFactory.createAPIResponses()
.addAPIResponse("200", OASFactory.createAPIResponse()
.content(OASFactory.createContent()
.addMediaType("application/json",
OASFactory.createMediaType()
.schema(OASFactory.createSchema()
.ref("Airlines")))))))));
}
}

0 comments on commit d927a38

Please sign in to comment.