question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

quarkus-smallrye-openapi property quarkus.smallrye-openapi.operation-id-strategy doesn't work

See original GitHub issue

Describe the bug

The quarkus.smallrye-openapi.operation-id-strategy property provided by the quarkus-smallrye-openapi extension doesn’t seem to work.

Expected behavior

In my application.properties file if I set mp.openapi.extensions.smallrye.operationIdStrategy=METHOD, when I download the openapi document I do see the operationId element in each section

Actual behavior

In my application.properties file if I set quarkus.smallrye-openapi.operation-id-strategy=method (or quarkus.smallrye-openapi.operation-id-strategy=METHOD), when I download the openapi document I do not see the operationId element in each section.

How to Reproduce?

Follow the guide at https://quarkus.io/guides/openapi-swaggerui and set quarkus.smallrye-openapi.operation-id-strategy=method in application.properties, then navigate to http://localhost:8080/q/openapi to download the openapi document. The operationId element for each operation is missing, whereas if you set mp.openapi.extensions.smallrye.operationIdStrategy=METHOD it is present.

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:22 (21 by maintainers)

github_iconTop GitHub Comments

1reaction
geoandcommented, Jul 21, 2021

Excellent. Then that will fix the issue I found as well 😃

1reaction
edeandreacommented, Jul 21, 2021

I wonder if the problem is that we use operationIdStrategy as the suffix when setting the system property instead of operation-id-strategy.

If so, the same would go for other properties, like termsOfService. @edeandrea can you try setting quarkus.smallrye-openapi.terms-of-service?

@geoand I’ll try this in a bit and report back

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using OpenAPI and Swagger UI - Quarkus
This is a build time property, it cannot be changed at runtime after your application is built. By default, Swagger UI is accessible...
Read more >
smallrye-openapi extension not working on Quarkus 0.18.0
I'm using latest version of quarkus. I have the swagger extension and I'm running with quarkus;dev.
Read more >
Using OpenAPI and Swagger UI - Quarkus
This guide explains how your Quarkus application can expose its API description ... Quarkus proposes a smallrye-openapi extension compliant with the Eclipse ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found