smithy/smithy-aws-apigateway-traits
Michael Dowling 061a607487 Add "critical" validation phase to validation
Runs "critical" validators before other validators so that they can be
written without needing to account for things like whether traits are
applied in valid places or not or if a trait's value matches its
definition and constraints.

This can help to simplify validators as they can now call methods like
.expectShape on a Model to throw if a shape is missing rather than
having to defensively code around potentially incorrect models.

To ensure this works backward compatibly with existing errorfile based
test runners, we will now detect whether to use a "legacy" validation
mode that continues to validate after a critical validator emitted an
event because an errorfiles mixes critical and non-critical events.
This ensures backward compatibility and that any new addition of
critical validators in the future will not break existing test cases.
2024-01-18 16:38:11 -06:00
..
src Add "critical" validation phase to validation 2024-01-18 16:38:11 -06:00
README.md Update links to point to smithy.io 2022-11-15 18:11:04 +01:00
build.gradle Move from Kotlin to Groovy for Gradle 2020-08-31 12:10:52 -07:00

README.md

Smithy AWS API Gateway traits

See the Smithy specification for details on how these traits are used.