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
When overriding a method with defined @Queryparam's and @DefaultValue's, the swagger UI does not correctly display the newly assigned DefaultValue's from the overridden method.
Say I have an interface with a defined reindex method:
The endpoint resulting from this AffectedGenomicModelCrudInterface should result in a new default value set for this specific endpoint. However, when looking at the swagger UI for this endpoint, it still shows the default value of the base interface, rather than the specific defaults for the AffectedGenomicModelCrudInterface.
When removing these default values and then hitting execute with empty queryparam boxes, the logs learn me that the DefaultValue's specified in the AffectedGenomicModelCrudInterface were applied, and so the overriding did occur as expected, as opposed to the swagger UI display of them.
Expected behavior
The Swagger UI should display the @DefaulValue's as defined in the method from the subclass.
Actual behavior
The Swagger UI displays the @DefaulValue's as defined in the method in the parent class, ignoring any @override's.
How to Reproduce?
Define QueryParams in one class, inherit and override them in another, and watch default values that get displayed in the swagger UI.
Output of uname -a or ver
Linux DESKTOP-OLM4LTH 5.10.102.1-microsoft-standard-WSL2 #1 SMP Wed Mar 2 00:30:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Output of java -version
openjdk version "11.0.15" 2022-04-19
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.11.1.Final
Build tool (ie. output of mvnw --version or gradlew --version)
Apache Maven 3.8.5
Additional information
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
When overriding a method with defined
@Queryparam
's and@DefaultValue
's, the swagger UI does not correctly display the newly assignedDefaultValue
's from the overridden method.Say I have an interface with a defined
reindex
method:and another interface that extends this base interface and overrides the
index
method:The endpoint resulting from this
AffectedGenomicModelCrudInterface
should result in a new default value set for this specific endpoint. However, when looking at the swagger UI for this endpoint, it still shows the default value of the base interface, rather than the specific defaults for theAffectedGenomicModelCrudInterface
.When removing these default values and then hitting execute with empty queryparam boxes, the logs learn me that the
DefaultValue
's specified in theAffectedGenomicModelCrudInterface
were applied, and so the overriding did occur as expected, as opposed to the swagger UI display of them.Expected behavior
The Swagger UI should display the
@DefaulValue
's as defined in the method from the subclass.Actual behavior
The Swagger UI displays the
@DefaulValue
's as defined in the method in the parent class, ignoring any@override
's.How to Reproduce?
Define QueryParams in one class, inherit and override them in another, and watch default values that get displayed in the swagger UI.
Output of
uname -a
orver
Linux DESKTOP-OLM4LTH 5.10.102.1-microsoft-standard-WSL2 #1 SMP Wed Mar 2 00:30:59 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk version "11.0.15" 2022-04-19
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.11.1.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.8.5
Additional information
No response
The text was updated successfully, but these errors were encountered: