-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge 0.17 into 0.18... one more time. (#1124)
* Add changelog entries for 0.17.7-12 * [skip ci] remove extra newline * Backport service interpreter (address #1111) (#1118) * Fix rendering of deprecated annotation in mixins (#1123) Co-authored-by: ghostbuster91 <[email protected]> Co-authored-by: David Francoeur <[email protected]> * Only transform AWS shapes named after standard shapes (#1127) * Fixes AWS AwsStandardTypesTransformer bug Only structure members can carry the `@default` trait. * Fix sandbox * add missing newline --------- Co-authored-by: Olivier Mélois <[email protected]> Co-authored-by: Miguel Vilá <[email protected]> Co-authored-by: Kasper Kondzielski <[email protected]> Co-authored-by: ghostbuster91 <[email protected]> Co-authored-by: David Francoeur <[email protected]> Co-authored-by: Olivier Mélois <[email protected]>
- Loading branch information
1 parent
9d39efc
commit 51af4e1
Showing
12 changed files
with
247 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
modules/bootstrapped/src/generated/com/amazonaws/dynamodb/ErrorMessage.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.amazonaws.dynamodb | ||
|
||
import smithy4s.Hints | ||
import smithy4s.Newtype | ||
import smithy4s.Schema | ||
import smithy4s.ShapeId | ||
import smithy4s.schema.Schema.bijection | ||
import smithy4s.schema.Schema.string | ||
|
||
object ErrorMessage extends Newtype[String] { | ||
val id: ShapeId = ShapeId("com.amazonaws.dynamodb", "ErrorMessage") | ||
val hints: Hints = Hints.empty | ||
val underlyingSchema: Schema[String] = string.withId(id).addHints(hints) | ||
implicit val schema: Schema[ErrorMessage] = bijection(underlyingSchema, asBijection) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
modules/bootstrapped/src/generated/smithy4s/example/DeprecatedMixin.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package smithy4s.example | ||
|
||
|
||
@deprecated(message = "A compelling reason", since = "0.0.1") | ||
trait DeprecatedMixin { | ||
@deprecated(message = "N/A", since = "N/A") | ||
def strings: Option[List[String]] | ||
def other: Option[List[String]] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.