Skip to content
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

Use $ref for path references #1193

Open
urbaniak opened this issue Nov 6, 2024 · 0 comments
Open

Use $ref for path references #1193

urbaniak opened this issue Nov 6, 2024 · 0 comments

Comments

@urbaniak
Copy link

urbaniak commented Nov 6, 2024

I have a 3rd party api I'd like to integrate into the openapi spec generated by utoipa, currently it's done by having another openapi spec definition with references both 3rd party and utoipa generated spec, like that:

openapi: "3.1.0"
paths:
  /first:
    $ref: "/utoipa_openapi.json#/paths/~1first"
  /second:
    $ref: "/3rdparty/openapi.yaml#/paths/~1second"

I'd like to add the /second path into the openapi spec generated by utoipa and cannot find a way in Path/PathItem to provide a reference, is there any way of doing that?

@urbaniak urbaniak changed the title Use $ref for path references. Use $ref for path references Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant