@spec2ts/openapi 2.0.0 → 3.0.1

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.
package/cli/command.js CHANGED
@@ -51,7 +51,7 @@ exports.builder = builder;
51
51
  async function handler(options) {
52
52
  const files = await core_1.cli.findFiles(options.input);
53
53
  for (const file of files) {
54
- const ast = await openapi_parser_1.parseOpenApiFile(file, options);
54
+ const ast = await (0, openapi_parser_1.parseOpenApiFile)(file, options);
55
55
  const content = core_1.printer.printNodes(ast.all);
56
56
  const output = core_1.cli.getOutputPath(file, options);
57
57
  await core_1.cli.mkdirp(output);
package/index.js CHANGED
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1,5 +1,5 @@
1
1
  import * as ts from "typescript";
2
- import { SchemaObject, ReferenceObject, PathItemObject, OperationObject, ParameterObject, ContentObject } from "openapi3-ts";
2
+ import type { SchemaObject, ReferenceObject, PathItemObject, OperationObject, ParameterObject, ContentObject } from "openapi3-ts/oas30";
3
3
  import { ParserContext, ParsedReference } from "@spec2ts/jsonschema/lib/core-parser";
4
4
  import type { ParseOpenApiOptions } from "./openapi-parser";
5
5
  export interface ParseOpenApiResult {
@@ -18,7 +18,7 @@ export interface OApiParserContext extends ParserContext {
18
18
  }
19
19
  export declare function parsePathItem(path: string, item: PathItemObject, context: OApiParserContext, result: ParseOpenApiResult): void;
20
20
  export declare function parseOperation(path: string, verb: string, operation: OperationObject, baseParams: ParsedParams | undefined, context: OApiParserContext, result: ParseOpenApiResult): void;
21
- export declare type ParamType = "params" | "headers" | "query" | "cookie";
21
+ export type ParamType = "params" | "headers" | "query" | "cookie";
22
22
  export declare function parseParameters(baseName: string, data: Array<ReferenceObject | ParameterObject>, baseParams: ParsedParams | undefined, context: OApiParserContext, result: ParseOpenApiResult): ParsedParams;
23
23
  export declare function parseReference(ref: ParsedReference, context: ParserContext): void;
24
24
  export declare function getContentDeclaration(name: string, content: ReferenceObject | ContentObject | undefined, context: OApiParserContext): ts.Statement | undefined;
@@ -6,16 +6,10 @@ const core = require("@spec2ts/core");
6
6
  const core_parser_1 = require("@spec2ts/jsonschema/lib/core-parser");
7
7
  const VERBS = ["GET", "PUT", "POST", "DELETE", "OPTIONS", "HEAD", "PATCH", "TRACE"];
8
8
  function parsePathItem(path, item, context, result) {
9
- let baseParams;
10
- if (item.parameters) {
11
- baseParams = parseParameters(getPathName(path, context), item.parameters, undefined, context, result);
12
- }
13
- Object.keys(item).forEach(verb => {
14
- const method = verb.toUpperCase();
15
- if (!VERBS.includes(method))
16
- return;
17
- parseOperation(path, verb, item[verb], baseParams, context, result);
18
- });
9
+ const baseParams = item.parameters && parseParameters(getPathName(path, context), item.parameters, undefined, context, result);
10
+ Object.entries(item)
11
+ .filter(([verb,]) => VERBS.includes(verb.toUpperCase()))
12
+ .forEach(([verb, entry]) => parseOperation(path, verb, entry, baseParams, context, result));
19
13
  }
20
14
  exports.parsePathItem = parsePathItem;
21
15
  function parseOperation(path, verb, operation, baseParams, context, result) {
@@ -24,16 +18,16 @@ function parseOperation(path, verb, operation, baseParams, context, result) {
24
18
  parseParameters(name, operation.parameters, baseParams, context, result);
25
19
  }
26
20
  if (operation.requestBody) {
27
- const requestBody = core_parser_1.resolveReference(operation.requestBody, context);
21
+ const requestBody = (0, core_parser_1.resolveReference)(operation.requestBody, context);
28
22
  const decla = getContentDeclaration(name + "Body", requestBody.content, context);
29
23
  if (decla) {
30
24
  addToOpenApiResult(result, "body", decla);
31
25
  }
32
26
  }
33
27
  if (operation.responses) {
34
- const responses = core_parser_1.resolveReference(operation.responses, context);
35
- Object.keys(responses).forEach(status => {
36
- const response = core_parser_1.resolveReference(responses[status], context);
28
+ const responses = (0, core_parser_1.resolveReference)(operation.responses, context);
29
+ Object.entries(responses).forEach(([status, responseObj]) => {
30
+ const response = (0, core_parser_1.resolveReference)(responseObj, context);
37
31
  const decla = getContentDeclaration(getResponseName(name, status, context), response.content, context);
38
32
  if (decla) {
39
33
  addToOpenApiResult(result, "responses", decla);
@@ -49,7 +43,7 @@ function parseParameters(baseName, data, baseParams = {}, context, result) {
49
43
  const cookie = [];
50
44
  const res = {};
51
45
  data.forEach(item => {
52
- item = core_parser_1.resolveReference(item, context);
46
+ item = (0, core_parser_1.resolveReference)(item, context);
53
47
  switch (item.in) {
54
48
  case "path":
55
49
  params.push(item);
@@ -73,7 +67,7 @@ function parseParameters(baseName, data, baseParams = {}, context, result) {
73
67
  function addParams(params, paramType) {
74
68
  if (!params.length)
75
69
  return;
76
- const name = baseName + core_parser_1.pascalCase(paramType);
70
+ const name = baseName + (0, core_parser_1.pascalCase)(paramType);
77
71
  const type = getParamType(paramType, params, baseParams[paramType], context);
78
72
  addToOpenApiResult(result, paramType, core.createTypeOrInterfaceDeclaration({
79
73
  modifiers: [core.modifier.export],
@@ -85,7 +79,7 @@ function parseParameters(baseName, data, baseParams = {}, context, result) {
85
79
  }
86
80
  exports.parseParameters = parseParameters;
87
81
  function parseReference(ref, context) {
88
- const type = core_parser_1.getTypeFromSchema(ref.schema, core_parser_1.createRefContext(ref, context));
82
+ const type = (0, core_parser_1.getTypeFromSchema)(ref.schema, (0, core_parser_1.createRefContext)(ref, context));
89
83
  context.aliases.push(core.createTypeOrInterfaceDeclaration({
90
84
  modifiers: [core.modifier.export],
91
85
  name: ref.name,
@@ -98,11 +92,11 @@ exports.parseReference = parseReference;
98
92
  function getContentDeclaration(name, content, context) {
99
93
  if (!content)
100
94
  return;
101
- content = core_parser_1.resolveReference(content, context);
95
+ content = (0, core_parser_1.resolveReference)(content, context);
102
96
  const schema = getSchemaFromContent(content);
103
97
  if (!schema)
104
98
  return;
105
- const type = core_parser_1.getTypeFromSchema(schema, context);
99
+ const type = (0, core_parser_1.getTypeFromSchema)(schema, context);
106
100
  return core.createTypeOrInterfaceDeclaration({
107
101
  modifiers: [core.modifier.export],
108
102
  name,
@@ -126,7 +120,7 @@ function getParamType(paramType, data, baseType, context) {
126
120
  const ctx = paramType === "query" && typeof context.options.enableDateForQueryParams !== "undefined"
127
121
  ? { ...context, options: { ...context.options, enableDate: context.options.enableDateForQueryParams } }
128
122
  : context;
129
- const type = core_parser_1.getTypeFromProperties(props, required, false, ctx);
123
+ const type = (0, core_parser_1.getTypeFromProperties)(props, required, false, ctx);
130
124
  if (baseType) {
131
125
  return ts.factory.createIntersectionTypeNode([baseType, type]);
132
126
  }
@@ -135,7 +129,10 @@ function getParamType(paramType, data, baseType, context) {
135
129
  exports.getParamType = getParamType;
136
130
  function getSchemaFromContent(content) {
137
131
  var _a, _b, _c, _d;
138
- return ((_a = content === null || content === void 0 ? void 0 : content["application/json"]) === null || _a === void 0 ? void 0 : _a.schema) || ((_b = content === null || content === void 0 ? void 0 : content["application/x-www-form-urlencoded"]) === null || _b === void 0 ? void 0 : _b.schema) || ((_c = content === null || content === void 0 ? void 0 : content["multipart/form-data"]) === null || _c === void 0 ? void 0 : _c.schema) || ((_d = content === null || content === void 0 ? void 0 : content["*/*"]) === null || _d === void 0 ? void 0 : _d.schema);
132
+ return ((_a = content === null || content === void 0 ? void 0 : content["application/json"]) === null || _a === void 0 ? void 0 : _a.schema) ||
133
+ ((_b = content === null || content === void 0 ? void 0 : content["application/x-www-form-urlencoded"]) === null || _b === void 0 ? void 0 : _b.schema) ||
134
+ ((_c = content === null || content === void 0 ? void 0 : content["multipart/form-data"]) === null || _c === void 0 ? void 0 : _c.schema) ||
135
+ ((_d = content === null || content === void 0 ? void 0 : content["*/*"]) === null || _d === void 0 ? void 0 : _d.schema);
139
136
  }
140
137
  exports.getSchemaFromContent = getSchemaFromContent;
141
138
  function getResponseName(operationName, statusCode, context) {
@@ -152,7 +149,7 @@ function getResponseName(operationName, statusCode, context) {
152
149
  }
153
150
  else {
154
151
  // default
155
- name += core_parser_1.pascalCase(statusCode);
152
+ name += (0, core_parser_1.pascalCase)(statusCode);
156
153
  }
157
154
  return name;
158
155
  }
@@ -167,7 +164,7 @@ function getOperationName(verb, path, operationId, context) {
167
164
  exports.getOperationName = getOperationName;
168
165
  function getPathName(path, context) {
169
166
  path = path.replace(/\{(.+?)\}/, "by $1").replace(/\{(.+?)\}/g, "and $1");
170
- let name = core_parser_1.pascalCase(path);
167
+ let name = (0, core_parser_1.pascalCase)(path);
171
168
  const count = (context.names[name] = (context.names[name] || 0) + 1);
172
169
  if (count > 1) {
173
170
  name += count;
@@ -180,7 +177,7 @@ function getOperationIdentifier(id) {
180
177
  return;
181
178
  if (id.match(/[^\w\s]/))
182
179
  return;
183
- id = core_parser_1.pascalCase(id);
180
+ id = (0, core_parser_1.pascalCase)(id);
184
181
  if (core.isValidIdentifier(id))
185
182
  return id;
186
183
  }
@@ -1,4 +1,4 @@
1
- import type { OpenAPIObject } from "openapi3-ts";
1
+ import type { OpenAPIObject } from "openapi3-ts/oas30";
2
2
  import { ParserOptions } from "@spec2ts/jsonschema/lib/core-parser";
3
3
  import { ParseOpenApiResult } from "./core-parser";
4
4
  export { ParseOpenApiResult };
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.parseOpenApi = exports.parseOpenApiFile = void 0;
4
4
  const path = require("path");
5
- const $RefParser = require("@apidevtools/json-schema-ref-parser");
5
+ const json_schema_ref_parser_1 = require("@apidevtools/json-schema-ref-parser");
6
6
  const core_parser_1 = require("@spec2ts/jsonschema/lib/core-parser");
7
7
  const core_parser_2 = require("./core-parser");
8
8
  async function parseOpenApiFile(file, options = {}) {
9
- const schema = await $RefParser.parse(file);
9
+ const schema = await json_schema_ref_parser_1.default.parse(file);
10
10
  return parseOpenApi(schema, {
11
11
  cwd: path.resolve(path.dirname(file)) + "/",
12
12
  ...options
@@ -17,12 +17,12 @@ async function parseOpenApi(spec, options = {}) {
17
17
  if (!options.parseReference) {
18
18
  options.parseReference = core_parser_2.parseReference;
19
19
  }
20
- const context = await core_parser_1.createContext(spec, options);
21
- const result = core_parser_2.createOpenApiResult();
22
- Object.keys(spec.paths).forEach(path => {
23
- core_parser_2.parsePathItem(path, spec.paths[path], context, result);
20
+ const context = await (0, core_parser_1.createContext)(spec, options);
21
+ const result = (0, core_parser_2.createOpenApiResult)();
22
+ Object.entries(spec.paths).forEach(([path, item]) => {
23
+ (0, core_parser_2.parsePathItem)(path, item, context, result);
24
24
  });
25
- core_parser_2.addToOpenApiResult(result, "models", context.aliases);
25
+ (0, core_parser_2.addToOpenApiResult)(result, "models", context.aliases);
26
26
  return result;
27
27
  }
28
28
  exports.parseOpenApi = parseOpenApi;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spec2ts/openapi",
3
- "version": "2.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Utility to convert OpenAPI v3 specifications to Typescript using TypeScript native compiler",
5
5
  "author": "Touchify <dev@touchify.co>",
6
6
  "license": "MIT",
@@ -32,23 +32,23 @@
32
32
  "test:jest": "jest -c ../../jest.config.js --rootDir .",
33
33
  "test:coverage": "npm run test -- -- --coverage",
34
34
  "lint": "npm run lint:ts",
35
- "lint:ts": "eslint \"*.ts\" \"{bin,cli,lib}/**/*.ts\"",
35
+ "lint:ts": "eslint '*.ts' '{bin,cli,lib}/**/*.ts'",
36
36
  "lint:fix": "npm run lint -- -- --fix",
37
37
  "clean": "npm run clean:ts",
38
- "clean:ts": "del *.{js,d.ts} {bin,cli,lib}/**/*.{js,d.ts}",
38
+ "clean:ts": "del '*.{js,d.ts}' '{bin,cli,lib}/**/*.{js,d.ts}'",
39
39
  "prepublishOnly": "npm test && npm run build"
40
40
  },
41
41
  "dependencies": {
42
- "@spec2ts/core": "^2.0.0",
43
- "@spec2ts/jsonschema": "^2.0.0",
44
- "openapi3-ts": "^1.3.0",
45
- "yargs": "^15.3.1"
42
+ "@spec2ts/core": "^3.0.0",
43
+ "@spec2ts/jsonschema": "^3.0.1",
44
+ "openapi3-ts": "^4.1.2",
45
+ "yargs": "^17.7.2"
46
46
  },
47
47
  "devDependencies": {
48
- "del-cli": "^5.0.0",
49
- "eslint": "^7.11.0",
50
- "jest": "^26.5.3",
51
- "typescript": "^4.0.0"
48
+ "del-cli": "^5.1.0",
49
+ "eslint": "^8.49.0",
50
+ "jest": "^29.6.4",
51
+ "typescript": "^5.2.2"
52
52
  },
53
53
  "keywords": [
54
54
  "openapi",
@@ -65,5 +65,5 @@
65
65
  "spec2ts",
66
66
  "share"
67
67
  ],
68
- "gitHead": "34fe406a4701ba1b7c173d3580e85f65e2950012"
68
+ "gitHead": "bb551ca5222ea751290b8d78577d4a571a8b03cb"
69
69
  }
package/CHANGELOG.md DELETED
@@ -1,227 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- # [2.0.0](https://github.com/touchifyapp/spec2ts/compare/@spec2ts/openapi@2.0.0-beta.8...@spec2ts/openapi@2.0.0) (2023-09-07)
7
-
8
- **Note:** Version bump only for package @spec2ts/openapi
9
-
10
-
11
-
12
-
13
-
14
- # [2.0.0-beta.8](https://github.com/touchifyapp/spec2ts/compare/@spec2ts/openapi@2.0.0-beta.7...@spec2ts/openapi@2.0.0-beta.8) (2022-09-21)
15
-
16
-
17
- ### Features
18
-
19
- * **openapi:** add option to disable date parsing in querystring ([e69547f](https://github.com/touchifyapp/spec2ts/commit/e69547ffdeb87cebe18cb622eee1d46829b35ad4))
20
-
21
-
22
-
23
-
24
-
25
- # [2.0.0-beta.7](https://github.com/touchifyapp/spec2ts/compare/@spec2ts/openapi@2.0.0-beta.6...@spec2ts/openapi@2.0.0-beta.7) (2022-07-29)
26
-
27
- **Note:** Version bump only for package @spec2ts/openapi
28
-
29
-
30
-
31
-
32
-
33
- # [2.0.0-beta.6](https://github.com/touchifyapp/spec2ts/compare/@spec2ts/openapi@2.0.0-beta.5...@spec2ts/openapi@2.0.0-beta.6) (2022-01-27)
34
-
35
- **Note:** Version bump only for package @spec2ts/openapi
36
-
37
-
38
-
39
-
40
-
41
- # [2.0.0-beta.5](https://github.com/touchifyapp/spec2ts/compare/@spec2ts/openapi@2.0.0-beta.4...@spec2ts/openapi@2.0.0-beta.5) (2021-11-03)
42
-
43
- **Note:** Version bump only for package @spec2ts/openapi
44
-
45
-
46
-
47
-
48
-
49
- # [2.0.0-beta.4](https://github.com/touchifyapp/spec2ts/compare/@spec2ts/openapi@2.0.0-beta.3...@spec2ts/openapi@2.0.0-beta.4) (2021-10-23)
50
-
51
-
52
- ### Features
53
-
54
- * allow --ext option to specify output extension ([4c70ca1](https://github.com/touchifyapp/spec2ts/commit/4c70ca13f3fc12ce1fd16c0430c7f90f90b0ed64))
55
-
56
-
57
-
58
-
59
-
60
- # [2.0.0-beta.3](https://github.com/touchifyapp/spec2ts/compare/@spec2ts/openapi@2.0.0-beta.2...@spec2ts/openapi@2.0.0-beta.3) (2021-02-27)
61
-
62
-
63
- ### Bug Fixes
64
-
65
- * **jsonschema:** avoid external references duplication ([9508d9e](https://github.com/touchifyapp/spec2ts/commit/9508d9eee0ae19523d03a2874bad73808ec5bf71))
66
-
67
-
68
-
69
-
70
-
71
- # [2.0.0-beta.2](https://github.com/touchifyapp/spec2ts/compare/@spec2ts/openapi@2.0.0-beta.1...@spec2ts/openapi@2.0.0-beta.2) (2020-11-29)
72
-
73
-
74
- ### Bug Fixes
75
-
76
- * **openapi:** bad yargs options for enableDate ([84e7ec9](https://github.com/touchifyapp/spec2ts/commit/84e7ec9977d910b71e0e6e20b5eacc113b89d24b))
77
-
78
-
79
-
80
-
81
-
82
- # [2.0.0-beta.1](https://github.com/touchifyapp/spec2ts/compare/@spec2ts/openapi@2.0.0-beta.0...@spec2ts/openapi@2.0.0-beta.1) (2020-11-29)
83
-
84
-
85
- ### Features
86
-
87
- * **openapi:** add support for new lax date style ([4d7eb0b](https://github.com/touchifyapp/spec2ts/commit/4d7eb0baad32e83c7f9cbf4feeec01cd34ec3be3))
88
-
89
-
90
-
91
-
92
-
93
- # [2.0.0-beta.0](https://github.com/touchifyapp/spec2ts/compare/@spec2ts/openapi@1.2.4...@spec2ts/openapi@2.0.0-beta.0) (2020-11-13)
94
-
95
-
96
- ### Features
97
-
98
- * **global:** upgrade typescript 4 ([#16](https://github.com/touchifyapp/spec2ts/issues/16)) ([fcd82be](https://github.com/touchifyapp/spec2ts/commit/fcd82be93be3986a2f723680f1c52818eb7ba1bc))
99
-
100
-
101
- ### BREAKING CHANGES
102
-
103
- * **global:** use typescript v4
104
- * **global:** updates are now immutable
105
-
106
-
107
-
108
-
109
-
110
- ## [1.2.4](https://github.com/touchifyapp/spec2ts/compare/@spec2ts/openapi@1.2.3...@spec2ts/openapi@1.2.4) (2020-10-26)
111
-
112
-
113
- ### Bug Fixes
114
-
115
- * **jsonschema,openapi:** cover more nested refs cases ([1badafb](https://github.com/touchifyapp/spec2ts/commit/1badafbe0865a186ef5fc92bfc0ab5b334d4fa6e))
116
-
117
-
118
-
119
-
120
-
121
- ## [1.2.3](https://github.com/touchifyapp/spec2ts/compare/@spec2ts/openapi@1.2.2...@spec2ts/openapi@1.2.3) (2020-10-26)
122
-
123
-
124
- ### Bug Fixes
125
-
126
- * **jsonschema,openapi:** nested references not resolved ([9825a40](https://github.com/touchifyapp/spec2ts/commit/9825a405630c101e7a70452ce3a18e02ccad9ce8)), closes [#15](https://github.com/touchifyapp/spec2ts/issues/15)
127
-
128
-
129
-
130
-
131
-
132
- ## [1.2.2](https://github.com/touchifyapp/spec2ts/compare/@spec2ts/openapi@1.2.1...@spec2ts/openapi@1.2.2) (2020-10-06)
133
-
134
-
135
- ### Bug Fixes
136
-
137
- * **openapi:** resolve response reference ([29e7ee5](https://github.com/touchifyapp/spec2ts/commit/29e7ee51a18049e2335eda08ceb68460b22de055)), closes [#7](https://github.com/touchifyapp/spec2ts/issues/7)
138
-
139
-
140
-
141
-
142
-
143
- ## [1.2.1](https://github.com/touchifyapp/spec2ts/compare/@spec2ts/openapi@1.2.0...@spec2ts/openapi@1.2.1) (2020-05-27)
144
-
145
- **Note:** Version bump only for package @spec2ts/openapi
146
-
147
-
148
-
149
-
150
-
151
- # [1.2.0](https://github.com/touchifyapp/spec2ts/compare/@spec2ts/openapi@1.1.3...@spec2ts/openapi@1.2.0) (2020-05-24)
152
-
153
-
154
- ### Features
155
-
156
- * **cli:** add default banner ([b0945e0](https://github.com/touchifyapp/spec2ts/commit/b0945e08b2c1da4dc494dca1890d491768a13e60))
157
-
158
-
159
-
160
-
161
-
162
- ## [1.1.3](https://github.com/touchifyapp/spec2ts/compare/@spec2ts/openapi@1.1.2...@spec2ts/openapi@1.1.3) (2020-05-18)
163
-
164
-
165
- ### Bug Fixes
166
-
167
- * **openapi:** fix missing await on mkdirp ([ba2ae64](https://github.com/touchifyapp/spec2ts/commit/ba2ae64805626b706f25f4caadec4bfb96a1055e))
168
-
169
-
170
-
171
-
172
-
173
- ## [1.1.2](https://github.com/touchifyapp/spec2ts/compare/@spec2ts/openapi@1.1.1...@spec2ts/openapi@1.1.2) (2020-05-16)
174
-
175
-
176
- ### Bug Fixes
177
-
178
- * **openapi:** fix avoid imports ([be6cf64](https://github.com/touchifyapp/spec2ts/commit/be6cf64e84588ee8773c2756fed0e24ea9d18ae1))
179
-
180
-
181
-
182
-
183
-
184
- ## [1.1.1](https://github.com/touchifyapp/spec2ts/compare/@spec2ts/openapi@1.1.0...@spec2ts/openapi@1.1.1) (2020-04-27)
185
-
186
-
187
- ### Bug Fixes
188
-
189
- * **openapi:** pass options to parser ([7b02e71](https://github.com/touchifyapp/spec2ts/commit/7b02e7146eafbf8dc2f0cf1fe97cc1051095df63))
190
-
191
-
192
-
193
-
194
-
195
- # [1.1.0](https://github.com/touchifyapp/spec2ts/compare/@spec2ts/openapi@1.0.0...@spec2ts/openapi@1.1.0) (2020-04-27)
196
-
197
-
198
- ### Features
199
-
200
- * **openapi:** add lowerHeaders option ([7520550](https://github.com/touchifyapp/spec2ts/commit/752055038827457c5058578be0d1ddf01ffead04))
201
-
202
-
203
-
204
-
205
-
206
- # 1.0.0 (2020-04-24)
207
-
208
-
209
- ### Bug Fixes
210
-
211
- * **release:** fix lerna publish ([fe36558](https://github.com/touchifyapp/spec2ts/commit/fe36558a1a2742e2e3d99aa08061ab9be0cf03f2))
212
-
213
-
214
- ### Code Refactoring
215
-
216
- * **global:** improve project architecture ([2b2c0a1](https://github.com/touchifyapp/spec2ts/commit/2b2c0a1d98b78457520fff2c116b7f8d0e5c5df5))
217
-
218
-
219
- ### Features
220
-
221
- * **jsonschema:** add cli command ([7592c43](https://github.com/touchifyapp/spec2ts/commit/7592c439be99fabb97cc270aa7a09794ee86f738))
222
- * **openapi:** add openapi parser to monorepo ([e9ca537](https://github.com/touchifyapp/spec2ts/commit/e9ca5375e2692f909d32eacae653f918cd348040))
223
-
224
-
225
- ### BREAKING CHANGES
226
-
227
- * **global:** force v1
package/bin/oapi2ts.d.ts DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- import "../cli";