swagger-typescript-api 12.0.1 → 12.0.2

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.
Files changed (3) hide show
  1. package/index.d.ts +5 -0
  2. package/index.js +1 -0
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -54,6 +54,11 @@ interface GenerateApiParamsBase {
54
54
  */
55
55
  unwrapResponseData?: boolean;
56
56
 
57
+ /**
58
+ * sort data contracts in alphabetical order
59
+ */
60
+ sortTypes?: boolean;
61
+
57
62
  /**
58
63
  * generate js api module with declaration file (default: false)
59
64
  */
package/index.js CHANGED
@@ -292,6 +292,7 @@ const main = async () => {
292
292
  apiClassName: options.apiClassName,
293
293
  debug: options.debug,
294
294
  anotherArrayType: options.anotherArrayType,
295
+ extractEnums: options.extractEnums,
295
296
  });
296
297
  break;
297
298
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swagger-typescript-api",
3
- "version": "12.0.1",
3
+ "version": "12.0.2",
4
4
  "description": "Generate typescript/javascript api from swagger schema",
5
5
  "scripts": {
6
6
  "cli:json": "node index.js -r -d -p ./swagger-test-cli.json -n swagger-test-cli.ts",