Skip to content

Commit

Permalink
Anchor the id pattern for HTTP protocol tests
Browse files Browse the repository at this point in the history
  • Loading branch information
adamthom-amzn committed Aug 3, 2021
1 parent 907da4b commit d57756e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ structure HttpRequestTestCase {
/// MUST match Smithy's `identifier` ABNF. No two `httpRequestTests`
/// test cases can share the same ID.
@required
@pattern("[A-Za-z_][A-Za-z0-9_]+")
@pattern("^[A-Za-z_][A-Za-z0-9_]+$")
id: String,

/// The name of the protocol to test.
Expand Down Expand Up @@ -178,7 +178,7 @@ structure HttpResponseTestCase {
/// MUST match Smithy's `identifier` ABNF. No two `httpResponseTests`
/// test cases can share the same ID.
@required
@pattern("[A-Za-z_][A-Za-z0-9_]+")
@pattern("^[A-Za-z_][A-Za-z0-9_]+$")
id: String,

/// The shape ID of the protocol to test.
Expand Down

0 comments on commit d57756e

Please sign in to comment.