openapi-ts-request 0.1.2 → 0.1.3
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/dist/cli.js +0 -0
- package/dist/generator/serviceGenarator.js +0 -2
- package/package.json +13 -15
package/dist/cli.js
CHANGED
|
File without changes
|
|
@@ -159,7 +159,6 @@ class ServiceGenerator {
|
|
|
159
159
|
const result = this.resolveObject(schema);
|
|
160
160
|
const getDefinesType = () => {
|
|
161
161
|
if (result === null || result === void 0 ? void 0 : result.type) {
|
|
162
|
-
console.log('888', result);
|
|
163
162
|
return schema.type === 'object'
|
|
164
163
|
? type_1.SchemaObjectType.object
|
|
165
164
|
: config_1.numberEnum.includes(result.type)
|
|
@@ -188,7 +187,6 @@ class ServiceGenerator {
|
|
|
188
187
|
schema.isAllowed) {
|
|
189
188
|
const isEnum = result.isEnum;
|
|
190
189
|
const typeName = (0, util_1.resolveTypeName)(schemaKey);
|
|
191
|
-
console.log('name:', typeName, getDefinesType());
|
|
192
190
|
lastTypes.push({
|
|
193
191
|
typeName,
|
|
194
192
|
type: getDefinesType(),
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "openapi-ts-request",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Swagger2/OpenAPI3 to TypeScript, Request Client, Request Mock Service, Enum, Display Field Label",
|
|
5
|
-
"packageManager": "pnpm@9.4.0",
|
|
6
5
|
"repository": {
|
|
7
6
|
"type": "git",
|
|
8
7
|
"url": "git+git@github.com:openapi-ui/openapi-ts-request.git"
|
|
@@ -19,17 +18,6 @@
|
|
|
19
18
|
"templates",
|
|
20
19
|
"prettier.config.cjs"
|
|
21
20
|
],
|
|
22
|
-
"scripts": {
|
|
23
|
-
"start": "tsc -w",
|
|
24
|
-
"build": "tsc",
|
|
25
|
-
"changeset": "changeset",
|
|
26
|
-
"prepublish:test": "npm run build && np --no-cleanup --yolo --no-publish --any-branch",
|
|
27
|
-
"lint": "eslint ./src --report-unused-disable-directives --max-warnings=0",
|
|
28
|
-
"lint:fix": "eslint ./src --report-unused-disable-directives --max-warnings=0 --fix",
|
|
29
|
-
"test": "rm -rf ./test/apis/ ./test/mocks && npm run build && cd ./test && node ./test.js && cd ..",
|
|
30
|
-
"test:windows": "rimraf ./test/apis/ ./test/mocks && npm run build && cd ./test && node ./test.js && cd ..",
|
|
31
|
-
"prepare": "husky"
|
|
32
|
-
},
|
|
33
21
|
"dependencies": {
|
|
34
22
|
"@prettier/sync": "^0.5.2",
|
|
35
23
|
"axios": "^1.7.2",
|
|
@@ -78,5 +66,15 @@
|
|
|
78
66
|
"openapi to axios client",
|
|
79
67
|
"openapi to fetch client",
|
|
80
68
|
"openapi to uni.request client"
|
|
81
|
-
]
|
|
82
|
-
|
|
69
|
+
],
|
|
70
|
+
"scripts": {
|
|
71
|
+
"start": "tsc -w",
|
|
72
|
+
"build": "tsc",
|
|
73
|
+
"changeset": "changeset",
|
|
74
|
+
"prepublish:test": "npm run build && np --no-cleanup --yolo --no-publish --any-branch",
|
|
75
|
+
"lint": "eslint ./src --report-unused-disable-directives --max-warnings=0",
|
|
76
|
+
"lint:fix": "eslint ./src --report-unused-disable-directives --max-warnings=0 --fix",
|
|
77
|
+
"test": "rm -rf ./test/apis/ ./test/mocks && npm run build && cd ./test && node ./test.js && cd ..",
|
|
78
|
+
"test:windows": "rimraf ./test/apis/ ./test/mocks && npm run build && cd ./test && node ./test.js && cd .."
|
|
79
|
+
}
|
|
80
|
+
}
|