@nestia/migrate 0.1.9 → 0.1.10

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.
@@ -49,7 +49,7 @@ class NestiaMigrateApplication {
49
49
  return "object" === typeof value && null !== value && $iu1(value);
50
50
  return true;
51
51
  });
52
- const $io17 = input => "http" === input.type && "basic" === input.schema;
52
+ const $io17 = input => "http" === input.type && "basic" === input.scheme;
53
53
  const $io18 = input => "http" === input.type && "bearer" === input.scheme && (undefined === input.bearerFormat || "string" === typeof input.bearerFormat);
54
54
  const $io19 = input => "apiKey" === input.type && ("header" === input["in"] || "query" === input["in"] || "cookie" === input["in"]) && "string" === typeof input.name;
55
55
  const $io20 = input => "openIdConnect" === input.type && "string" === typeof input.openIdConnectUrl;
@@ -127,9 +127,9 @@ class NestiaMigrateApplication {
127
127
  return $io5(input);
128
128
  })();
129
129
  const $iu1 = input => (() => {
130
- if (undefined !== input.schema)
130
+ if ("basic" === input.scheme)
131
131
  return $io17(input);
132
- if (undefined !== input.scheme)
132
+ if ("bearer" === input.scheme)
133
133
  return $io18(input);
134
134
  if ("apiKey" === input.type)
135
135
  return $io19(input);
@@ -868,10 +868,10 @@ class NestiaMigrateApplication {
868
868
  path: _path + ".type",
869
869
  expected: "\"http\"",
870
870
  value: input.type
871
- })) && ("basic" === input.schema || $guard(_exceptionable, {
872
- path: _path + ".schema",
871
+ })) && ("basic" === input.scheme || $guard(_exceptionable, {
872
+ path: _path + ".scheme",
873
873
  expected: "\"basic\"",
874
- value: input.schema
874
+ value: input.scheme
875
875
  }));
876
876
  const $ao18 = (input, _path, _exceptionable = true) => ("http" === input.type || $guard(_exceptionable, {
877
877
  path: _path + ".type",
@@ -1286,9 +1286,9 @@ class NestiaMigrateApplication {
1286
1286
  return $ao5(input, _path, true && _exceptionable);
1287
1287
  })();
1288
1288
  const $au1 = (input, _path, _exceptionable = true) => (() => {
1289
- if (undefined !== input.schema)
1289
+ if ("basic" === input.scheme)
1290
1290
  return $ao17(input, _path, true && _exceptionable);
1291
- if (undefined !== input.scheme)
1291
+ if ("bearer" === input.scheme)
1292
1292
  return $ao18(input, _path, true && _exceptionable);
1293
1293
  if ("apiKey" === input.type)
1294
1294
  return $ao19(input, _path, true && _exceptionable);
@@ -2,7 +2,7 @@ export type ISwaggerSecurity = ISwaggerSecurity.IHttpBasic | ISwaggerSecurity.IH
2
2
  export declare namespace ISwaggerSecurity {
3
3
  interface IHttpBasic {
4
4
  type: "http";
5
- schema: "basic";
5
+ scheme: "basic";
6
6
  }
7
7
  interface IHttpBearer {
8
8
  type: "http";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestia/migrate",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "Migration program from swagger to NestJS",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -45,7 +45,7 @@
45
45
  "typescript-transform-paths": "^3.4.6"
46
46
  },
47
47
  "dependencies": {
48
- "typia": "^4.1.6"
48
+ "typia": "^4.1.8"
49
49
  },
50
50
  "files": [
51
51
  "lib",
@@ -1,4 +1,4 @@
1
- export type ISwaggerSecurity =
1
+ export type ISwaggerSecurity =
2
2
  | ISwaggerSecurity.IHttpBasic
3
3
  | ISwaggerSecurity.IHttpBearer
4
4
  | ISwaggerSecurity.IApiKey
@@ -7,7 +7,7 @@ export type ISwaggerSecurity =
7
7
  export namespace ISwaggerSecurity {
8
8
  export interface IHttpBasic {
9
9
  type: "http";
10
- schema: "basic";
10
+ scheme: "basic";
11
11
  }
12
12
  export interface IHttpBearer {
13
13
  type: "http";
@@ -44,4 +44,4 @@ export namespace ISwaggerSecurity {
44
44
  scopes?: Record<string, string>;
45
45
  }
46
46
  }
47
- }
47
+ }