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

OAS 3.0 'links' are missing #551

Closed
mullr opened this issue Mar 29, 2023 · 1 comment · Fixed by #1047
Closed

OAS 3.0 'links' are missing #551

mullr opened this issue Mar 29, 2023 · 1 comment · Fixed by #1047
Labels
enhancement New feature or request

Comments

@mullr
Copy link

mullr commented Mar 29, 2023

I'd expect to be able to do something like this:

#[path(get, path="...",
    responses(
      (status = 200, body = Foo, links = ("someLink", ...))]

Relevant portion of the spec: https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#link-object

@juhaku
Copy link
Owner

juhaku commented Mar 29, 2023

That is true, it hasn't been implemented so far but should be added in future for sure. Also PRs are welcome 🙂

@juhaku juhaku added the enhancement New feature or request label Mar 29, 2023
juhaku added a commit that referenced this issue Sep 11, 2024
This commit adds support for OpenAPI links https://spec.openapis.org/oas/latest.html#link-object
in `#[utoipa::path(...)]` response object.

Also improve documentation as mentioned in issue #919

Closes #551 Closes #919
@juhaku juhaku closed this as completed in f6d1c3d Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Released
Development

Successfully merging a pull request may close this issue.

2 participants