-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
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
[OAS 3.1.0] PathItem supports references in the Components object. #437
Comments
I noticed that Added this to the list in the main comment. |
Thought about this again and I'm less sure. The mapping from annotations to model objects isn't straightforward.
I guess You could argue that I think a new That would leave us with: Referencing a callback: @Path("/myOp")
@Callback(name = "myCallback", ref = "#/components/callbacks/myCallback")
public String myOp() { ... } Referencing a pathItem from a callback: @Path("/myOp")
@Callback(name = "myCallback", callbackUrlExpression = "/foobar", pathItemRef = "#/components/pathItems/myPathItem")
public String myOp() { ... } Referencing a pathItem from a webhook: @OpenAPIDefinition(webhooks = {
@Webhook(name = "myWebhook", ref = "#/components/pathItems/myPathItem")
}) |
Second complication: not only is a reference to a There are a few OpenAPI issues related to this:
In the current 3.1 dev branch, using |
Thinking again about annotations, we still need to decide whether we want annotations for Path Items under This decision would also impact #583 (webhooks) since in the model, the
|
We decided at the meeting yesterday that we should push ahead with creating |
Work required:
|
In order to support OpenAPI 3.1.0 (see #333) we need the PathItem to support
$ref
.Reference: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.1.0.md#componentsObject
Example (to be verified):
To be added:
Reference
.ref
can be set alongside other fields inPathItem
The text was updated successfully, but these errors were encountered: