@smithy/core 3.20.7 → 3.20.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -194,7 +194,9 @@ class HttpBindingProtocol extends HttpProtocol {
194
194
  const inputMemberValue = input[memberName];
195
195
  if (inputMemberValue == null && !memberNs.isIdempotencyToken()) {
196
196
  if (memberTraits.httpLabel) {
197
- throw new Error(`No value provided for input HTTP label: ${memberName}.`);
197
+ if (request.path.includes(`{${memberName}+}`) || request.path.includes(`{${memberName}}`)) {
198
+ throw new Error(`No value provided for input HTTP label: ${memberName}.`);
199
+ }
198
200
  }
199
201
  continue;
200
202
  }
@@ -50,7 +50,9 @@ export class HttpBindingProtocol extends HttpProtocol {
50
50
  const inputMemberValue = input[memberName];
51
51
  if (inputMemberValue == null && !memberNs.isIdempotencyToken()) {
52
52
  if (memberTraits.httpLabel) {
53
- throw new Error(`No value provided for input HTTP label: ${memberName}.`);
53
+ if (request.path.includes(`{${memberName}+}`) || request.path.includes(`{${memberName}}`)) {
54
+ throw new Error(`No value provided for input HTTP label: ${memberName}.`);
55
+ }
54
56
  }
55
57
  continue;
56
58
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/core",
3
- "version": "3.20.7",
3
+ "version": "3.20.8",
4
4
  "scripts": {
5
5
  "build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline core",