Skip to content

Commit

Permalink
Emit warning on addition of @required trait.
Browse files Browse the repository at this point in the history
rchache authored and mtdowling committed Aug 15, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 8635932 commit f662d6a
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -721,7 +721,16 @@ string pattern

/// Marks a structure member as required, meaning a value for the member MUST
/// be present.
@trait(selector: "structure > member")
@trait(
selector: "structure > member"
breakingChanges: [
{
change: "add"
severity: "WARNING"
message: "If any consumers were previously omitting this member in operation inputs, making it required is backwards incompatible"
}
]
)
structure required {}

/// Configures a structure member's resource property mapping behavior.

0 comments on commit f662d6a

Please sign in to comment.