Package io.swagger.v3.parser.util
Enum ReferenceValidator
- java.lang.Object
-
- java.lang.Enum<ReferenceValidator>
-
- io.swagger.v3.parser.util.ReferenceValidator
-
- All Implemented Interfaces:
Serializable,Comparable<ReferenceValidator>
public enum ReferenceValidator extends Enum<ReferenceValidator>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description callbacksexamplesheaderslinksparametersrequestBodiesresponsesschemassecuritySchemes
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract booleanvalidateComponent(io.swagger.v3.oas.models.Components components, String reference)static ReferenceValidatorvalueOf(String name)Returns the enum constant of this type with the specified name.static ReferenceValidator[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
schemas
public static final ReferenceValidator schemas
-
responses
public static final ReferenceValidator responses
-
parameters
public static final ReferenceValidator parameters
-
examples
public static final ReferenceValidator examples
-
requestBodies
public static final ReferenceValidator requestBodies
-
headers
public static final ReferenceValidator headers
-
securitySchemes
public static final ReferenceValidator securitySchemes
-
links
public static final ReferenceValidator links
-
callbacks
public static final ReferenceValidator callbacks
-
-
Method Detail
-
values
public static ReferenceValidator[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ReferenceValidator c : ReferenceValidator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ReferenceValidator valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
validateComponent
public abstract boolean validateComponent(io.swagger.v3.oas.models.Components components, String reference)
-
-