You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Tag(name = "greeting")
Produces the following in the unit test. "tags":["Change the language","Hello! Welcome to our website!"]
But changing the @tag to include a description causes the name parameter to no longer load from properties file. @Tag(name = "greeting", description = "greeting")
Produces "tags":[{"name":"greeting","description":"greeting"}]
To Reproduce
Modify the following line in the unit test.
Run the test and check the body that was returned in the error message.
Expected behavior
I would expect that both Name and Description would have converted from the properties file to product "Hello! Welcome to our website!"
I also expect that adding a new parameter should not change the results of how the name parameter is loaded from the properties file.
The text was updated successfully, but these errors were encountered:
Describe the bug
@tag name is being parsed differently depending on the parameters supplied to the annotation.
i.e.
In the unit test App14 (https://github.com/springdoc/springdoc-openapi/tree/master/springdoc-openapi-webmvc-core/src/test/java/test/org/springdoc/api/app14)
@Tag(name = "greeting")
Produces the following in the unit test.
"tags":["Change the language","Hello! Welcome to our website!"]
But changing the @tag to include a description causes the name parameter to no longer load from properties file.
@Tag(name = "greeting", description = "greeting")
Produces
"tags":[{"name":"greeting","description":"greeting"}]
To Reproduce
Modify the following line in the unit test.
springdoc-openapi/springdoc-openapi-webmvc-core/src/test/java/test/org/springdoc/api/app14/HelloController.java
Line 31 in 6725f08
@Tag(name = "greeting", description = "greeting")
Run the test and check the body that was returned in the error message.
Expected behavior
I would expect that both Name and Description would have converted from the properties file to product "Hello! Welcome to our website!"
I also expect that adding a new parameter should not change the results of how the name parameter is loaded from the properties file.
The text was updated successfully, but these errors were encountered: