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 Jackson's @JsonValue is used on an enum method, the Swagger enum list properly uses this value. However, when it is used on an interface method which is implemented by the enum, the Swagger enum list does not. This causes a discrepancy between what the REST API actually accepts (as defined by Jackson) and what the Swagger definition states it does.
When Jackson's @JsonValue is used on an enum method, the Swagger enum list properly uses this value. However, when it is used on an interface method which is implemented by the enum, the Swagger enum list does not. This causes a discrepancy between what the REST API actually accepts (as defined by Jackson) and what the Swagger definition states it does.
To verify the behavior, update the JacksonValueEnum in the swagger-core test. The EnumPropertyTest.testExtractJacksonEnumFields test will then fail.
Custom enum interface:
Updated enum to implement the interface:
The text was updated successfully, but these errors were encountered: