@elysiajs/openapi 1.4.8 → 1.4.9
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/cjs/gen/index.js +6 -5
- package/dist/gen/index.mjs +6 -5
- package/package.json +1 -1
package/dist/cjs/gen/index.js
CHANGED
|
@@ -8323,7 +8323,9 @@ function extractRootObjects(code) {
|
|
|
8323
8323
|
let keyEnd = colonIdx - 1;
|
|
8324
8324
|
while (keyEnd >= 0 && /\s/.test(code[keyEnd])) keyEnd--;
|
|
8325
8325
|
let keyStart = keyEnd;
|
|
8326
|
-
while (keyStart >= 0 &&
|
|
8326
|
+
while (keyStart >= 0 && !/[\s{};,\n]/.test(code[keyStart])) {
|
|
8327
|
+
keyStart--;
|
|
8328
|
+
}
|
|
8327
8329
|
const braceIdx = code.indexOf("{", colonIdx);
|
|
8328
8330
|
if (braceIdx === -1) break;
|
|
8329
8331
|
let depth = 0;
|
|
@@ -8457,11 +8459,10 @@ var fromTypes = (targetFilePath, {
|
|
|
8457
8459
|
3
|
|
8458
8460
|
)
|
|
8459
8461
|
);
|
|
8460
|
-
const routesString = extractRootObjects(
|
|
8461
|
-
instance.replace(matchStatus, '"$1":')
|
|
8462
|
-
);
|
|
8463
8462
|
const routes = {};
|
|
8464
|
-
for (const route of
|
|
8463
|
+
for (const route of extractRootObjects(
|
|
8464
|
+
instance.slice(2).replace(matchStatus, '"$1":')
|
|
8465
|
+
)) {
|
|
8465
8466
|
let schema = TypeBox(route.replaceAll(/readonly/g, ""));
|
|
8466
8467
|
if (schema.type !== "object") continue;
|
|
8467
8468
|
const paths = [];
|
package/dist/gen/index.mjs
CHANGED
|
@@ -8312,7 +8312,9 @@ function extractRootObjects(code) {
|
|
|
8312
8312
|
let keyEnd = colonIdx - 1;
|
|
8313
8313
|
while (keyEnd >= 0 && /\s/.test(code[keyEnd])) keyEnd--;
|
|
8314
8314
|
let keyStart = keyEnd;
|
|
8315
|
-
while (keyStart >= 0 &&
|
|
8315
|
+
while (keyStart >= 0 && !/[\s{};,\n]/.test(code[keyStart])) {
|
|
8316
|
+
keyStart--;
|
|
8317
|
+
}
|
|
8316
8318
|
const braceIdx = code.indexOf("{", colonIdx);
|
|
8317
8319
|
if (braceIdx === -1) break;
|
|
8318
8320
|
let depth = 0;
|
|
@@ -8446,11 +8448,10 @@ var fromTypes = (targetFilePath, {
|
|
|
8446
8448
|
3
|
|
8447
8449
|
)
|
|
8448
8450
|
);
|
|
8449
|
-
const routesString = extractRootObjects(
|
|
8450
|
-
instance.replace(matchStatus, '"$1":')
|
|
8451
|
-
);
|
|
8452
8451
|
const routes = {};
|
|
8453
|
-
for (const route of
|
|
8452
|
+
for (const route of extractRootObjects(
|
|
8453
|
+
instance.slice(2).replace(matchStatus, '"$1":')
|
|
8454
|
+
)) {
|
|
8454
8455
|
let schema = TypeBox(route.replaceAll(/readonly/g, ""));
|
|
8455
8456
|
if (schema.type !== "object") continue;
|
|
8456
8457
|
const paths = [];
|