@aws-sdk/client-schemas 3.216.0 → 3.218.0

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.
@@ -264,7 +264,7 @@ const serializeAws_restJson1ExportSchemaCommand = async (input, context) => {
264
264
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "SchemaName", () => input.SchemaName, "{SchemaName}", false);
265
265
  const query = map({
266
266
  schemaVersion: [, input.SchemaVersion],
267
- type: [, input.Type],
267
+ type: [, (0, smithy_client_1.expectNonNull)(input.Type, `Type`)],
268
268
  });
269
269
  let body;
270
270
  return new protocol_http_1.HttpRequest({
@@ -515,7 +515,7 @@ const serializeAws_restJson1SearchSchemasCommand = async (input, context) => {
515
515
  "/v1/registries/name/{RegistryName}/schemas/search";
516
516
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "RegistryName", () => input.RegistryName, "{RegistryName}", false);
517
517
  const query = map({
518
- keywords: [, input.Keywords],
518
+ keywords: [, (0, smithy_client_1.expectNonNull)(input.Keywords, `Keywords`)],
519
519
  limit: [() => input.Limit !== void 0, () => input.Limit.toString()],
520
520
  nextToken: [, input.NextToken],
521
521
  });
@@ -594,7 +594,10 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
594
594
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
595
595
  resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
596
596
  const query = map({
597
- tagKeys: [() => input.TagKeys !== void 0, () => (input.TagKeys || []).map((_entry) => _entry)],
597
+ tagKeys: [
598
+ (0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
599
+ () => (input.TagKeys || []).map((_entry) => _entry),
600
+ ],
598
601
  });
599
602
  let body;
600
603
  return new protocol_http_1.HttpRequest({
@@ -248,7 +248,7 @@ export const serializeAws_restJson1ExportSchemaCommand = async (input, context)
248
248
  resolvedPath = __resolvedPath(resolvedPath, input, "SchemaName", () => input.SchemaName, "{SchemaName}", false);
249
249
  const query = map({
250
250
  schemaVersion: [, input.SchemaVersion],
251
- type: [, input.Type],
251
+ type: [, __expectNonNull(input.Type, `Type`)],
252
252
  });
253
253
  let body;
254
254
  return new __HttpRequest({
@@ -488,7 +488,7 @@ export const serializeAws_restJson1SearchSchemasCommand = async (input, context)
488
488
  "/v1/registries/name/{RegistryName}/schemas/search";
489
489
  resolvedPath = __resolvedPath(resolvedPath, input, "RegistryName", () => input.RegistryName, "{RegistryName}", false);
490
490
  const query = map({
491
- keywords: [, input.Keywords],
491
+ keywords: [, __expectNonNull(input.Keywords, `Keywords`)],
492
492
  limit: [() => input.Limit !== void 0, () => input.Limit.toString()],
493
493
  nextToken: [, input.NextToken],
494
494
  });
@@ -563,7 +563,10 @@ export const serializeAws_restJson1UntagResourceCommand = async (input, context)
563
563
  let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{ResourceArn}";
564
564
  resolvedPath = __resolvedPath(resolvedPath, input, "ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
565
565
  const query = map({
566
- tagKeys: [() => input.TagKeys !== void 0, () => (input.TagKeys || []).map((_entry) => _entry)],
566
+ tagKeys: [
567
+ __expectNonNull(input.TagKeys, `TagKeys`) != null,
568
+ () => (input.TagKeys || []).map((_entry) => _entry),
569
+ ],
567
570
  });
568
571
  let body;
569
572
  return new __HttpRequest({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-schemas",
3
3
  "description": "AWS SDK for JavaScript Schemas Client for Node.js, Browser and React Native",
4
- "version": "3.216.0",
4
+ "version": "3.218.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,9 +19,9 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.216.0",
22
+ "@aws-sdk/client-sts": "3.218.0",
23
23
  "@aws-sdk/config-resolver": "3.215.0",
24
- "@aws-sdk/credential-provider-node": "3.216.0",
24
+ "@aws-sdk/credential-provider-node": "3.218.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.215.0",
26
26
  "@aws-sdk/hash-node": "3.215.0",
27
27
  "@aws-sdk/invalid-dependency": "3.215.0",