public enum OpenAPIComponent extends Enum<OpenAPIComponent>
Enum Constant and Description |
---|
CALLBACKS |
EXAMPLES |
HEADERS |
LINKS |
PARAMETERS |
REQUESTBODIES |
RESPONSES |
SCHEMAS |
SECURITYSCHEMES |
Modifier and Type | Field and Description |
---|---|
static String |
VALID_COMPONENTS |
Modifier and Type | Method and Description |
---|---|
String |
getComponentTypeLabel()
Returns the component type label as defined by the OpenAPI 3.0 Specification
|
static boolean |
isReferenceComponentValid(String reference)
Returns true if the references being validated matches the OpenAPI component structure of
'#/components/
|
static OpenAPIComponent |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OpenAPIComponent[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OpenAPIComponent SCHEMAS
public static final OpenAPIComponent REQUESTBODIES
public static final OpenAPIComponent PARAMETERS
public static final OpenAPIComponent SECURITYSCHEMES
public static final OpenAPIComponent RESPONSES
public static final OpenAPIComponent HEADERS
public static final OpenAPIComponent EXAMPLES
public static final OpenAPIComponent LINKS
public static final OpenAPIComponent CALLBACKS
public static final String VALID_COMPONENTS
public static OpenAPIComponent[] values()
for (OpenAPIComponent c : OpenAPIComponent.values()) System.out.println(c);
public static OpenAPIComponent valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getComponentTypeLabel()
public static boolean isReferenceComponentValid(String reference)
reference
-