SmithyValidation
zio.http.gen.smithy.SmithyValidation
object SmithyValidation
Smithy Model Validation
Validates Smithy models according to the Smithy specification: https://smithy.io/2.0/spec/model-validation.html
Provides comprehensive validation with helpful error messages including:
- Shape reference validation (undefined references)
- HTTP trait validation (path parameters, methods, status codes)
- Constraint trait validation (@length, @range, @pattern)
- Structure validation (required members, duplicate members)
- Operation validation (input/output/error shapes)
- Service validation (referenced operations/resources exist)
Attributes
- Source
- SmithyValidation.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SmithyValidation.type
Members list
Type members
Classlikes
object ErrorType
Attributes
- Companion
- trait
- Source
- SmithyValidation.scala
- Supertypes
- Self type
-
ErrorType.type
Attributes
- Companion
- object
- Source
- SmithyValidation.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object CyclicReferenceobject DuplicatePathParameterobject IncompatibleTraitobject InvalidConstraintobject InvalidEnumobject InvalidHttpMethodobject InvalidHttpPathobject InvalidLengthobject InvalidOperationobject InvalidPatternobject InvalidRangeobject InvalidServiceobject InvalidStatusCodeobject MissingPathParameterobject MissingRequiredTraitobject PathParameterMismatchobject UndefinedMemberobject UndefinedShapeShow all
class SmithyValidationException(val result: ValidationResult) extends RuntimeException
Attributes
- Source
- SmithyValidation.scala
- Supertypes
-
class RuntimeExceptionclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
A validation error with context about where and what failed
A validation error with context about where and what failed
Attributes
- Source
- SmithyValidation.scala
- Supertypes
Result of validation
object ValidationResult
Attributes
- Companion
- class
- Source
- SmithyValidation.scala
- Supertypes
- Self type
-
ValidationResult.type
Value members
Concrete methods
Validate a SmithyModel and return all errors and warnings
Validate and throw if there are errors
In this article