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
While validation annotations of generic parameters are now supported for Optionals and Array-like structures (see #4373) that is not the case for Map structures.
Example:
@NotNull private final Map<Integer, @NotNull BigDecimal> vintages;
While validation annotations of generic parameters are now supported for Optionals and Array-like structures (see #4373) that is not the case for Map structures.
Example:
@NotNull private final Map<Integer, @NotNull BigDecimal> vintages;
will produce an OpenAPI specification:
"vintages":{"type":"object","additionalProperties":{"type":"number"}}
Any annotation on the Map's value is ignored.
The text was updated successfully, but these errors were encountered: