Enum Class NodeValidationVisitor.Feature
java.lang.Object
java.lang.Enum<NodeValidationVisitor.Feature>
software.amazon.smithy.model.validation.NodeValidationVisitor.Feature
- All Implemented Interfaces:
Serializable
,Comparable<NodeValidationVisitor.Feature>
,Constable
- Enclosing class:
- NodeValidationVisitor
Features to use when validating.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionEmit a warning when a range trait is incompatible with a default value of 0. -
Method Summary
Modifier and TypeMethodDescriptionstatic Node
toNode
(NodeValidationVisitor.Feature feature) Returns the enum constant of this class with the specified name.static NodeValidationVisitor.Feature[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RANGE_TRAIT_ZERO_VALUE_WARNING
Emit a warning when a range trait is incompatible with a default value of 0.This was a common pattern in Smithy 1.0 and earlier. It implies that the value is effectively required. However, changing the type of the value by un-boxing it or adjusting the range trait would be a lossy transformation when migrating a model from 1.0 to 2.0.
-
ALLOW_CONSTRAINT_ERRORS
-
-
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
-
fromNode
-
toNode
-