zio.http.gen.smithy
Members list
Type members
Classlikes
Attributes
- Source
- Smithy.scala
- Supertypes
Smithy IDL Parser and AST
Smithy IDL Parser and AST
Implements parsing of Smithy 2.0 IDL specifications as defined in: https://smithy.io/2.0/spec/idl.html
Attributes
- Companion
- object
- Source
- Smithy.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- trait
- Source
- Smithy.scala
- Supertypes
- Self type
-
NodeValue.type
Attributes
- Companion
- object
- Source
- Smithy.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class EnumShapeclass IntEnumShapeclass ListShapeclass MapShapeclass OperationShapeclass ResourceShapeclass ServiceShapetrait SimpleShapeclass BigDecimalShapeclass BigIntegerShapeclass BlobShapeclass BooleanShapeclass ByteShapeclass DocumentShapeclass DoubleShapeclass FloatShapeclass IntegerShapeclass LongShapeclass ShortShapeclass StringShapeclass TimestampShapeclass StructureShapeclass UnionShapeShow all
Attributes
- Companion
- trait
- Source
- Smithy.scala
- Supertypes
- Self type
-
Shape.type
A shape ID uniquely identifies a shape in the Smithy model. Format: [namespace#]name[$ member]
A shape ID uniquely identifies a shape in the Smithy model. Format: [namespace#]name[$ member]
Attributes
- Companion
- object
- Source
- Smithy.scala
- Supertypes
Attributes
- Companion
- class
- Source
- Smithy.scala
- Supertypes
- Self type
-
ShapeId.type
Attributes
- Companion
- object
- Source
- Smithy.scala
- Supertypes
Attributes
- Companion
- class
- Source
- Smithy.scala
- Supertypes
- Self type
-
Smithy.type
Smithy IDL primitive codecs using RichTextCodec.
Smithy IDL primitive codecs using RichTextCodec.
These provide the building blocks for parsing Smithy IDL. The primitives demonstrate the enhanced | operator with Alternator support that unifies same-type alternatives without nested Either types.
Attributes
- Source
- SmithyCodecs.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SmithyCodecs.type
Configuration for Smithy code generation.
Configuration for Smithy code generation.
Value parameters
- endpointsObjectName
-
Name of the generated endpoints object (default: "Endpoints").
- fieldNamesNormalization
-
Controls normalization of field names from Smithy conventions (e.g., snake_case) to Scala conventions (camelCase). Original names are preserved via @fieldName annotations. Enabled by default.
- generateCompanionObjects
-
If true, generates companion objects with Schema derivation for all case classes.
- generateEndpointsObject
-
If true, generates a single
Endpointsobject containing all endpoint definitions. If false, generates separate files per operation. - includeDocumentation
-
If true, includes Smithy @documentation traits as Scaladoc comments in the generated code.
- typeMapping
-
Custom mapping of Smithy shape names to Scala types. Allows overriding default type mappings for specific shapes. e.g., Map("UserId" -> "java.util.UUID")
- unwrapSingleMemberInputs
-
If true, operations with single-member input structures will use the member type directly instead of the wrapper. e.g.,
GetUserInput { userId: String }-> endpoint takesString - validateBeforeGeneration
-
If true, validates the Smithy model before generating code. Validation errors will cause generation to fail with detailed messages.
Attributes
- Companion
- object
- Source
- SmithyConfig.scala
- Supertypes
Attributes
- Companion
- class
- Source
- SmithyConfig.scala
- Supertypes
- Self type
-
SmithyConfig.type
Generates zio-http Endpoint definitions from Smithy models.
Generates zio-http Endpoint definitions from Smithy models.
This code generator reads a SmithyModel AST and produces:
- Endpoint definitions for operations with @http traits
- Case classes for structure shapes
- Sealed traits for union shapes
- Type aliases for simple shapes
Attributes
- Companion
- class
- Source
- SmithyEndpointGen.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SmithyEndpointGen.type
Attributes
- Companion
- object
- Source
- SmithyEndpointGen.scala
- Supertypes
-
class Objecttrait Matchableclass Any
Attributes
- Source
- Smithy.scala
- Supertypes
Attributes
- Source
- Smithy.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SmithyParser.type
Attributes
- Companion
- object
- Source
- Smithy.scala
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class Authclass Defaultclass Documentationobject Errorclass ErrorMessageobject EventStreamclass Genericclass Httpobject HttpApiKeyAuthobject HttpBasicAuthobject HttpBearerAuthobject HttpDigestAuthclass HttpErrorclass HttpHeaderobject HttpLabelobject HttpPayloadclass HttpPrefixHeadersclass HttpQueryclass HttpQueryParamsobject HttpResponseCodeobject Idempotentclass JsonNameclass Lengthclass MediaTypeclass Patternclass Rangeobject Readonlyobject Requiredobject Streamingclass TimestampFormatShow all
Attributes
- Companion
- trait
- Source
- Smithy.scala
- Supertypes
- Self type
-
SmithyTrait.type
Smithy Model Validation
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
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
SmithyValidation.type