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

OpenAPI 3.1 properties included when OpenAPI 3.0 output is configured #30514

Open
Azquelt opened this issue Jan 9, 2025 · 0 comments · May be fixed by #30513
Open

OpenAPI 3.1 properties included when OpenAPI 3.0 output is configured #30514

Azquelt opened this issue Jan 9, 2025 · 0 comments · May be fixed by #30513
Assignees
Labels
in:MicroProfile/OpenAPI release bug This bug is present in a released version of Open Liberty

Comments

@Azquelt
Copy link
Member

Azquelt commented Jan 9, 2025

Describe the bug

When a property is used that was added in OpenAPI 3.1, it should not be included when an OpenAPI 3.0 document is created.

Steps to Reproduce

In the application, use an OpenAPI annotation only supported in OpenAPI 3.1:

@Info(summary = "foo")

In the server.xml, configure output in OpenAPI 3.0:

<mpOpenAPI openAPIVersion="3.0"/>

In http://localhost:9080/openapi, observe that the info.summary property is present, making the OpenAPI 3.0 document invalid.

Expected behavior

The info.summary property should not be included in the output.

Diagnostic information:

  • OpenLiberty Version: 24.0.0.12
  • Affected feature(s): mpOpenAPI-4.0

Additional context
Add any other context about the problem here.

Upstream issue: smallrye/smallrye-open-api#2105

@Azquelt Azquelt added in:MicroProfile/OpenAPI release bug This bug is present in a released version of Open Liberty labels Jan 9, 2025
@Azquelt Azquelt self-assigned this Jan 9, 2025
@Azquelt Azquelt moved this to Backlog in MicroProfile UK Jan 9, 2025
@Azquelt Azquelt moved this from Backlog to In Progress in MicroProfile UK Jan 9, 2025
@Azquelt Azquelt linked a pull request Jan 9, 2025 that will close this issue
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in:MicroProfile/OpenAPI release bug This bug is present in a released version of Open Liberty
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

1 participant