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

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

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 22 (21 by maintainers)

Most upvoted comments

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

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