|
2 | 2 | "name": "swagger-typescript-api",
|
3 | 3 | "version": "13.0.3",
|
4 | 4 | "description": "Generate typescript/javascript api from swagger schema",
|
| 5 | + "keywords": [ |
| 6 | + "openapi", |
| 7 | + "swagger", |
| 8 | + "typescript", |
| 9 | + "api", |
| 10 | + "javascript", |
| 11 | + "rest", |
| 12 | + "codegen", |
| 13 | + "generation", |
| 14 | + "http" |
| 15 | + ], |
| 16 | + "homepage": "https://github.com/acacode/swagger-typescript-api", |
| 17 | + "bugs": { |
| 18 | + "url": "https://github.com/acacode/swagger-typescript-api/issues" |
| 19 | + }, |
| 20 | + "repository": { |
| 21 | + "type": "git", |
| 22 | + "url": "git://github.com/acacode/swagger-typescript-api" |
| 23 | + }, |
| 24 | + "license": "MIT", |
| 25 | + "author": "acacode", |
| 26 | + "main": "src/index.js", |
| 27 | + "typings": "./index.d.ts", |
| 28 | + "bin": { |
| 29 | + "sta": "index.js", |
| 30 | + "swagger-typescript-api": "index.js" |
| 31 | + }, |
| 32 | + "files": [ |
| 33 | + "src", |
| 34 | + "index.js", |
| 35 | + "index.d.ts", |
| 36 | + "templates", |
| 37 | + "cli", |
| 38 | + "LICENSE" |
| 39 | + ], |
5 | 40 | "scripts": {
|
6 |
| - "update-deps-to-latest": "npx --yes npm-check-updates && npm i", |
7 |
| - "lint": "eslint .", |
8 |
| - "lint:fix": "eslint . --fix", |
| 41 | + "cli:help": "node index.js -h", |
9 | 42 | "cli:json": "node index.js -r -d -p ./swagger-test-cli.json -n swagger-test-cli.ts",
|
10 | 43 | "cli:yaml": "node index.js -r -d -p ./swagger-test-cli.yaml -n swagger-test-cli.ts",
|
| 44 | + "contributors": "all-contributors generate", |
| 45 | + "generate": "node tests/generate.js", |
| 46 | + "generate-extended": "node tests/generate-extended.js", |
| 47 | + "lint": "eslint .", |
| 48 | + "lint:fix": "eslint . --fix", |
11 | 49 | "node": "node swagger-test-cli/generate.js",
|
12 | 50 | "node:debug": "node --nolazy swagger-test-cli/generate.js",
|
13 |
| - "contributors": "all-contributors generate", |
14 |
| - "cli:help": "node index.js -h", |
15 | 51 | "test-all": "npm run test-extended && npm run test-simple && npm run test-specific",
|
16 | 52 | "test-all(update-snapshots)": "cross-env UPDATE_SNAPSHOTS=true npm run test-all",
|
17 |
| - "test-simple": "node --unhandled-rejections=strict scripts_runner.js generate validate", |
18 | 53 | "test-extended": "node --unhandled-rejections=strict scripts_runner.js generate-extended validate",
|
| 54 | + "test-simple": "node --unhandled-rejections=strict scripts_runner.js generate validate", |
19 | 55 | "test-specific": "node --unhandled-rejections=strict scripts_runner.js test:*",
|
20 | 56 | "test-specific(update-snapshots)": "cross-env UPDATE_SNAPSHOTS=true node --unhandled-rejections=strict scripts_runner.js test:*",
|
21 |
| - "generate": "node tests/generate.js", |
22 |
| - "generate-extended": "node tests/generate-extended.js", |
23 |
| - "validate": "node tests/validate.js", |
24 |
| - "validate:debug": "node --nolazy tests/validate.js", |
25 |
| - "test:--route-types": "node tests/spec/routeTypes/test.js", |
26 |
| - "test:--no-client": "node tests/spec/noClient/test.js", |
27 |
| - "test:--default-as-success": "node tests/spec/defaultAsSuccess/test.js", |
28 |
| - "test:--templates": "node tests/spec/templates/test.js", |
29 |
| - "test:--union-enums": "node tests/spec/unionEnums/test.js", |
30 | 57 | "test:--add-readonly": "node tests/spec/readonly/test.js",
|
31 |
| - "test:--responses": "node tests/spec/responses/test.js", |
32 |
| - "test:specProperty": "node tests/spec/specProperty/test.js", |
33 |
| - "test:--module-name-index": "node tests/spec/moduleNameIndex/test.js", |
34 |
| - "test:--module-name-first-tag": "node tests/spec/moduleNameFirstTag/test.js", |
35 |
| - "test:--modular": "node tests/spec/modular/test.js", |
36 |
| - "test:--single-http-client": "node tests/spec/singleHttpClient/test.js", |
37 |
| - "test:--extract-request-params": "node tests/spec/extractRequestParams/test.js", |
| 58 | + "test:--another-array-type": "node tests/spec/another-array-type/test.js", |
| 59 | + "test:--axios": "node tests/spec/axios/test.js", |
| 60 | + "test:--axios--single-http-client": "node tests/spec/axiosSingleHttpClient/test.js", |
| 61 | + "test:--cli": "rimraf tests/spec/cli/schema.ts && node index.js -p tests/spec/cli/schema.json -o tests/spec/cli -n schema.ts --extract-response-body --extract-response-error --api-class-name MySuperApi --type-prefix Prefix && node tests/spec/cli/test.js", |
| 62 | + "test:--default-as-success": "node tests/spec/defaultAsSuccess/test.js", |
| 63 | + "test:--default-response": "node tests/spec/defaultResponse/test.js", |
| 64 | + "test:--dot-path-params": "node tests/spec/dot-path-params/test.js", |
| 65 | + "test:--enum-names-as-values": "node tests/spec/enumNamesAsValues/test.js", |
38 | 66 | "test:--extract-request-body": "node tests/spec/extractRequestBody/test.js",
|
| 67 | + "test:--extract-request-params": "node tests/spec/extractRequestParams/test.js", |
39 | 68 | "test:--extract-response-body": "node tests/spec/extractResponseBody/test.js",
|
40 | 69 | "test:--extract-response-error": "node tests/spec/extractResponseError/test.js",
|
41 |
| - "test:--enum-names-as-values": "node tests/spec/enumNamesAsValues/test.js", |
42 |
| - "test:--default-response": "node tests/spec/defaultResponse/test.js", |
43 |
| - "test:const-keyword": "node tests/spec/const-keyword/test.js", |
44 | 70 | "test:--js": "node tests/spec/js/test.js",
|
45 |
| - "test:jsSingleHttpClientModular": "node tests/spec/jsSingleHttpClientModular/test.js", |
46 | 71 | "test:--js--axios": "node tests/spec/jsAxios/test.js",
|
47 |
| - "test:--axios": "node tests/spec/axios/test.js", |
48 |
| - "test:--another-array-type": "node tests/spec/another-array-type/test.js", |
| 72 | + "test:--modular": "node tests/spec/modular/test.js", |
| 73 | + "test:--module-name-first-tag": "node tests/spec/moduleNameFirstTag/test.js", |
| 74 | + "test:--module-name-index": "node tests/spec/moduleNameIndex/test.js", |
| 75 | + "test:--no-client": "node tests/spec/noClient/test.js", |
49 | 76 | "test:--object-types": "node tests/spec/object-types/test.js",
|
50 |
| - "test:--axios--single-http-client": "node tests/spec/axiosSingleHttpClient/test.js", |
51 |
| - "test:--type-suffix--type-prefix": "node tests/spec/typeSuffixPrefix/test.js", |
52 |
| - "test:--dot-path-params": "node tests/spec/dot-path-params/test.js", |
53 |
| - "test:--primitive-type-constructs": "node tests/spec/primitive-type-constructs/test.js", |
54 |
| - "test:--cli": "rimraf tests/spec/cli/schema.ts && node index.js -p tests/spec/cli/schema.json -o tests/spec/cli -n schema.ts --extract-response-body --extract-response-error --api-class-name MySuperApi --type-prefix Prefix && node tests/spec/cli/test.js", |
55 |
| - "test:partialBaseTemplate": "node tests/spec/partialBaseTemplate/test.js", |
56 |
| - "test:partialDefaultTemplate": "node tests/spec/partialDefaultTemplate/test.js", |
57 | 77 | "test:--patch": "node tests/spec/patch/test.js",
|
58 |
| - "test:deprecated": "node tests/spec/deprecated/test.js", |
59 |
| - "test:nullableRefTest3.0": "node tests/spec/nullable-3.0/test.js", |
60 |
| - "test:nullableRefTest2.0": "node tests/spec/nullable-2.0/test.js", |
| 78 | + "test:--primitive-type-constructs": "node tests/spec/primitive-type-constructs/test.js", |
| 79 | + "test:--responses": "node tests/spec/responses/test.js", |
| 80 | + "test:--route-types": "node tests/spec/routeTypes/test.js", |
| 81 | + "test:--single-http-client": "node tests/spec/singleHttpClient/test.js", |
| 82 | + "test:--templates": "node tests/spec/templates/test.js", |
| 83 | + "test:--type-suffix--type-prefix": "node tests/spec/typeSuffixPrefix/test.js", |
| 84 | + "test:--union-enums": "node tests/spec/unionEnums/test.js", |
61 | 85 | "test:additionalProperties2.0": "node tests/spec/additional-properties-2.0/test.js",
|
62 |
| - "test:enums2.0": "node tests/spec/enums-2.0/test.js", |
63 | 86 | "test:another-query-params": "node tests/spec/another-query-params/test.js",
|
64 |
| - "test:on-insert-path-param": "node tests/spec/on-insert-path-param/test.js", |
| 87 | + "test:const-keyword": "node tests/spec/const-keyword/test.js", |
| 88 | + "test:deprecated": "node tests/spec/deprecated/test.js", |
| 89 | + "test:discriminator": "node tests/spec/discriminator/test.js", |
| 90 | + "test:enums2.0": "node tests/spec/enums-2.0/test.js", |
65 | 91 | "test:extra-templates": "node tests/spec/extra-templates/test.js",
|
66 | 92 | "test:extract-enums": "node tests/spec/extract-enums/test.js",
|
67 |
| - "test:discriminator": "node tests/spec/discriminator/test.js", |
| 93 | + "test:jsSingleHttpClientModular": "node tests/spec/jsSingleHttpClientModular/test.js", |
| 94 | + "test:nullableRefTest2.0": "node tests/spec/nullable-2.0/test.js", |
| 95 | + "test:nullableRefTest3.0": "node tests/spec/nullable-3.0/test.js", |
| 96 | + "test:on-insert-path-param": "node tests/spec/on-insert-path-param/test.js", |
| 97 | + "test:partialBaseTemplate": "node tests/spec/partialBaseTemplate/test.js", |
| 98 | + "test:partialDefaultTemplate": "node tests/spec/partialDefaultTemplate/test.js", |
68 | 99 | "test:sort-types": "node tests/spec/sortTypes/test.js",
|
69 |
| - "test:sort-types-false": "node tests/spec/sortTypes-false/test.js" |
70 |
| - }, |
71 |
| - "author": "acacode", |
72 |
| - "license": "MIT", |
73 |
| - "typings": "./index.d.ts", |
74 |
| - "main": "src/index.js", |
75 |
| - "devDependencies": { |
76 |
| - "eslint": "^8.44.0", |
77 |
| - "eslint-config-prettier": "^8.8.0", |
78 |
| - "eslint-plugin-prettier": "^5.0.0", |
79 |
| - "@types/lodash": "^4.14.195", |
80 |
| - "@types/node": "^20.4.1", |
81 |
| - "@types/prettier": "^2.7.3", |
82 |
| - "all-contributors-cli": "^6.26.1", |
83 |
| - "axios": "^1.4.0", |
84 |
| - "cross-env": "^7.0.3", |
85 |
| - "dotenv": "^16.3.1", |
86 |
| - "git-diff": "^2.0.6", |
87 |
| - "husky": "^8.0.3", |
88 |
| - "pretty-quick": "^3.1.3", |
89 |
| - "rimraf": "^5.0.1" |
| 100 | + "test:sort-types-false": "node tests/spec/sortTypes-false/test.js", |
| 101 | + "test:specProperty": "node tests/spec/specProperty/test.js", |
| 102 | + "update-deps-to-latest": "npx --yes npm-check-updates && npm i", |
| 103 | + "validate": "node tests/validate.js", |
| 104 | + "validate:debug": "node --nolazy tests/validate.js" |
90 | 105 | },
|
91 | 106 | "dependencies": {
|
92 | 107 | "@types/swagger-schema-official": "2.0.22",
|
|
104 | 119 | "swagger2openapi": "7.0.8",
|
105 | 120 | "typescript": "5.1.6"
|
106 | 121 | },
|
107 |
| - "bin": { |
108 |
| - "swagger-typescript-api": "index.js", |
109 |
| - "sta": "index.js" |
110 |
| - }, |
111 |
| - "keywords": [ |
112 |
| - "openapi", |
113 |
| - "swagger", |
114 |
| - "typescript", |
115 |
| - "api", |
116 |
| - "javascript", |
117 |
| - "rest", |
118 |
| - "codegen", |
119 |
| - "generation", |
120 |
| - "http" |
121 |
| - ], |
122 |
| - "files": [ |
123 |
| - "src", |
124 |
| - "index.js", |
125 |
| - "index.d.ts", |
126 |
| - "templates", |
127 |
| - "cli", |
128 |
| - "LICENSE" |
129 |
| - ], |
130 |
| - "bugs": { |
131 |
| - "url": "https://github.com/acacode/swagger-typescript-api/issues" |
132 |
| - }, |
133 |
| - "homepage": "https://github.com/acacode/swagger-typescript-api", |
134 |
| - "repository": { |
135 |
| - "type": "git", |
136 |
| - "url": "git://github.com/acacode/swagger-typescript-api" |
| 122 | + "devDependencies": { |
| 123 | + "@types/lodash": "^4.14.195", |
| 124 | + "@types/node": "^20.4.1", |
| 125 | + "@types/prettier": "^2.7.3", |
| 126 | + "all-contributors-cli": "^6.26.1", |
| 127 | + "axios": "^1.4.0", |
| 128 | + "cross-env": "^7.0.3", |
| 129 | + "dotenv": "^16.3.1", |
| 130 | + "eslint": "^8.44.0", |
| 131 | + "eslint-config-prettier": "^8.8.0", |
| 132 | + "eslint-plugin-prettier": "^5.0.0", |
| 133 | + "git-diff": "^2.0.6", |
| 134 | + "husky": "^8.0.3", |
| 135 | + "pretty-quick": "^3.1.3", |
| 136 | + "rimraf": "^5.0.1" |
137 | 137 | }
|
138 | 138 | }
|
0 commit comments