aws AWS Developer Tools Blog ·

Smithy now generates standalone types for consistent event-driven communication

bloginfraawsgaengineer
feature

AWS announces that Smithy, its Interface Definition Language, can now generate standalone types for any chosen shape, extending beyond operation inputs and outputs. This new capability, facilitated by "shape closures," simplifies event publishing by allowing services and consumers to share consistent data definitions. Developers can leverage this to reduce manual serialization code, prevent breaking changes in event payloads, and improve overall reliability in event-driven architectures. The feature is available in smithy-java 1.5.1 and smithy-typescript 0.52.0, with support for more languages planned.

Features (1)
  • Generate standalone types using Smithy shape closures

    Smithy now supports generating types for arbitrary shapes defined in a model, not just those associated with service operations. This is achieved through "shape closures," a named set of shapes declared explicitly in the model, enabling developers to publish a single artifact with generated types and serialization for event payloads, ensuring consistency across services and their consumers.

Read the original announcement →

https://aws.amazon.com/blogs/developer/generate-standalone-types-with-smithy/

Related releases