@penkov/swagger-code-gen 1.8.4 → 1.8.5

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.
@@ -5,7 +5,7 @@ export interface <%= schema.normalName %> {
5
5
  <%_ }); -%>
6
6
  }
7
7
  <%_ } if (schema.schemaType === 'enum') { -%>
8
- export enum <%= schema.normalName %> {
8
+ export enum <%= schema.name %> {
9
9
  <%_ schema.values.foreach(p => { -%>
10
10
  <%= p %> = '<%= p %>',
11
11
  <%_ }); -%>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@penkov/swagger-code-gen",
3
- "version": "1.8.4",
3
+ "version": "1.8.5",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "generate-client": "./dist/cli.mjs"
@@ -23,6 +23,7 @@
23
23
  "homepage": "https://github.com/papirosko/swagger-code-gen#readme",
24
24
  "scripts": {
25
25
  "test:petstore": "node --loader ts-node/esm ./src/cli.mjs --enableScats --targetNode --url https://petstore3.swagger.io/api/v3/openapi.json tmp/petstore.ts",
26
+ "gen-api:backend": "node --loader ts-node/esm ./src/cli.mjs --url http://localhost:3000/-json --includeTags user auth system profile categories offers search order payment tickets offers_stat prices payment_profiles --enableScats tmp/backend.ts",
26
27
  "clean": "rimraf dist",
27
28
  "lint": "eslint \"{src,test}/**/*.ts\" --fix",
28
29
  "prebuild": "npm run lint && npm run clean",