@CompileStatic class SchemaValues extends java.lang.Object
The values a schema lists and suggests - its enum, default, example and
const - written as the type the schema describes.
An annotation declares each of them as a string, such as
@Schema(allowableValues = ['1', '2'], defaultValue = '1'). swagger-core converts them for
a property of an OpenAPI 3.0 document, whose schema it creates of the property's type, but leaves
most of them strings in a 3.1 document, whose schema holds its type as a set of types, and in a
schema an annotation declares by its type alone, in either version. A string is none of the
values of an integer, a number or a boolean, so such a schema allowed nothing it listed.
| Type Params | Return Type | Name and description |
|---|---|---|
|
static void |
typeValues(io.swagger.v3.oas.models.media.Schema schema)Converts the values of a schema that describes one type, besides null, to that type:
an integer, a number or a boolean. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |