Uses of Class
io.swagger.v3.oas.annotations.media.Schema.RequiredMode
-
Packages that use Schema.RequiredMode Package Description io.swagger.v3.oas.annotations.media -
-
Uses of Schema.RequiredMode in io.swagger.v3.oas.annotations.media
Methods in io.swagger.v3.oas.annotations.media that return Schema.RequiredMode Modifier and Type Method Description Schema.RequiredMode
requiredMode()
Allows to specify the required mode (RequiredMode.AUTO, REQUIRED, NOT_REQUIRED) RequiredMode.AUTO: the library decides using heuristics: - Bean Validation / nullability annotations (@NotNull, @NonNull, @NotBlank, @NotEmpty) - required - Optional - not required - Primitive types (int, boolean, etc.) - not required unless annotated - Other object fields without any constraints - not required RequiredMode.REQUIRED: will force the item to be considered as required regardless of heuristics.static Schema.RequiredMode
Schema.RequiredMode. valueOf(String name)
Returns the enum constant of this type with the specified name.static Schema.RequiredMode[]
Schema.RequiredMode. values()
Returns an array containing the constants of this enum type, in the order they are declared.
-