diff --git a/tck/src/main/java/org/eclipse/microprofile/openapi/reader/MyOASModelReaderImpl.java b/tck/src/main/java/org/eclipse/microprofile/openapi/reader/MyOASModelReaderImpl.java index 2087ed21..e94c0a7a 100644 --- a/tck/src/main/java/org/eclipse/microprofile/openapi/reader/MyOASModelReaderImpl.java +++ b/tck/src/main/java/org/eclipse/microprofile/openapi/reader/MyOASModelReaderImpl.java @@ -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"))))))))); } }