Enum Class OpenApi.Style
- All Implemented Interfaces:
Serializable, Comparable<OpenApi.Style>, Constable
- Enclosing class:
OpenApi
Parameter serialization style.
Declarative OpenAPI generation supports SIMPLE style for path and header parameters, COOKIE
style for cookie parameters in OpenAPI 3.2, FORM style for cookie parameters in earlier OpenAPI versions,
and FORM, SPACE_DELIMITED, or PIPE_DELIMITED style for query parameters. Delimited query
styles require list-valued parameters and cannot use OpenApi.Explode.TRUE. Header parameters cannot use
OpenApi.Explode.TRUE. DEEP_OBJECT, MATRIX, and LABEL are not supported by declarative HTTP
parameter binding.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCookie style parameters in OpenAPI 3.2.Deep object style parameters.Form style parameters.Label style parameters.Matrix style parameters.Pipe-delimited array parameters.Simple style parameters.Space-delimited array parameters.Infer style from the parameter location and type. -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenApi.StyleReturns the enum constant of this class with the specified name.static OpenApi.Style[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNSPECIFIED
Infer style from the parameter location and type. -
MATRIX
Matrix style parameters. -
LABEL
Label style parameters. -
FORM
Form style parameters. -
COOKIE
Cookie style parameters in OpenAPI 3.2. -
SIMPLE
Simple style parameters. -
SPACE_DELIMITED
Space-delimited array parameters. -
PIPE_DELIMITED
Pipe-delimited array parameters. -
DEEP_OBJECT
Deep object style parameters.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-