Class TimestampFormatPlugin
- java.lang.Object
-
- software.amazon.smithy.model.validation.node.TimestampFormatPlugin
-
- All Implemented Interfaces:
NodeValidatorPlugin
public final class TimestampFormatPlugin extends java.lang.Object implements NodeValidatorPlugin
Validates that timestamp shapes contain values that are compatible with their timestampFormat traits or contain values that are numbers or an RFC 3339 date-time production.
-
-
Constructor Summary
Constructors Constructor Description TimestampFormatPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
apply(Shape shape, Node value, ShapeIndex index)
Applies the plugin to the given shape, node value, and shape index.
-
-
-
Method Detail
-
apply
public java.util.List<java.lang.String> apply(Shape shape, Node value, ShapeIndex index)
Description copied from interface:NodeValidatorPlugin
Applies the plugin to the given shape, node value, and shape index.- Specified by:
apply
in interfaceNodeValidatorPlugin
- Parameters:
shape
- Shape being checked.value
- Value being evaluated.index
- Shape index used to traverse the model.- Returns:
- Returns any validation messages that were encountered.
-
-