Skip to content

Commit

Permalink
Remove @internal from @unittype trait
Browse files Browse the repository at this point in the history
  • Loading branch information
mtdowling committed Jan 13, 2022
1 parent 5c7db5e commit c99a75f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
9 changes: 4 additions & 5 deletions designs/operation-input-output-and-unit-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,8 @@ A [unit](https://en.wikipedia.org/wiki/Unit_type) shape will be added to the
Smithy prelude to represent a shape that has no meaningful value. There will
be a single `Unit` shape in Smithy, modeled as a structure with the internal
`@unitType` trait attached to differentiate it from other structures. The
`@internal` trait on the `@unitType` trait ensures that no other unit
structures can be defined.
selector of the `@unitType` trait ensures that no other unit structures can be
defined.

The `Unit` shape and `unitType` trait are modeled in the prelude as:

Expand All @@ -221,10 +221,9 @@ namespace smithy.api
structure Unit {}
/// Specializes a structure as a unit type that has no meaningful value.
/// This trait is private, which ensures that only a single Unit shape
/// can be created, smithy.api#Unit.
/// This trait can only be applied to smithy.api#Unit, which ensures that
/// only a single Unit shape can be created.
@trait(selector: "[id=smithy.api#Unit]")
@internal
structure unitType {}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -785,8 +785,7 @@ structure input {}
structure output {}

/// Specializes a structure as a unit type that has no meaningful value.
/// This trait is private, which ensures that only a single Unit shape
/// can be created, smithy.api#Unit.
/// This trait can only be applied to smithy.api#Unit, which ensures that
/// only a single Unit shape can be created.
@trait(selector: "[id=smithy.api#Unit]")
@internal
structure unitType {}

0 comments on commit c99a75f

Please sign in to comment.