Enum Class JetOpenApiAnnotationsExtension.GenerateOperationId
java.lang.Object
java.lang.Enum<JetOpenApiAnnotationsExtension.GenerateOperationId>
net.jacobpeterson.jet.openapiannotationsplugin.JetOpenApiAnnotationsExtension.GenerateOperationId
- All Implemented Interfaces:
Serializable, Comparable<JetOpenApiAnnotationsExtension.GenerateOperationId>, Constable
- Enclosing class:
JetOpenApiAnnotationsExtension
public static enum JetOpenApiAnnotationsExtension.GenerateOperationId
extends Enum<JetOpenApiAnnotationsExtension.GenerateOperationId>
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIf not already provided, generateOpenApiOperation.operationId()using theFROM_CLASS_METHOD_NAMEconfiguration and ensuring the generated value is equal to the generated value of theFROM_METHOD_AND_PATHconfiguration.Do not generateOpenApiOperation.operationId().If not already provided, generateOpenApiOperation.operationId()using the name of the class method annotated with theOpenApiannotation.If not already provided, generateOpenApiOperation.operationId()by concatenatingOpenApiPathItem.methods()with the lower-camelcase conversion of the path segments ofOpenApiPathItem.MapEntry.key()after the index ofOpenApiOperation.tags(). -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DISABLED
Do not generateOpenApiOperation.operationId(). -
FROM_CLASS_METHOD_NAME
If not already provided, generateOpenApiOperation.operationId()using the name of the class method annotated with theOpenApiannotation. -
FROM_METHOD_AND_PATH
If not already provided, generateOpenApiOperation.operationId()by concatenatingOpenApiPathItem.methods()with the lower-camelcase conversion of the path segments ofOpenApiPathItem.MapEntry.key()after the index ofOpenApiOperation.tags(). -
BOTH
If not already provided, generateOpenApiOperation.operationId()using theFROM_CLASS_METHOD_NAMEconfiguration and ensuring the generated value is equal to the generated value of theFROM_METHOD_AND_PATHconfiguration. This enforces the same naming convention for both the class method name and the API path.
-
-
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
-