@1szx1/vite-plugin-swagger2ts 1.3.14 → 1.3.15
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/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -208,7 +208,7 @@ function generatorResponseBodyType(schemas, docsName) {
|
|
|
208
208
|
return jsDoc({ description }, { key: "response", result });
|
|
209
209
|
}
|
|
210
210
|
function jsDoc({ description, title, format, example, default: default1 }, { key, result, isRoot, isExport, isRequired }) {
|
|
211
|
-
if (!(isRoot || isExport) &&
|
|
211
|
+
if (!(isRoot || isExport) && /^[^'"]*$/.test(key))
|
|
212
212
|
key = `'${key}'`;
|
|
213
213
|
const jsDoc2 = `
|
|
214
214
|
/**
|
package/dist/index.mjs
CHANGED
|
@@ -199,7 +199,7 @@ function generatorResponseBodyType(schemas, docsName) {
|
|
|
199
199
|
return jsDoc({ description }, { key: "response", result });
|
|
200
200
|
}
|
|
201
201
|
function jsDoc({ description, title, format, example, default: default1 }, { key, result, isRoot, isExport, isRequired }) {
|
|
202
|
-
if (!(isRoot || isExport) &&
|
|
202
|
+
if (!(isRoot || isExport) && /^[^'"]*$/.test(key))
|
|
203
203
|
key = `'${key}'`;
|
|
204
204
|
const jsDoc2 = `
|
|
205
205
|
/**
|
package/package.json
CHANGED