zudoku 0.64.0 → 0.64.1
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/lib/plugins/openapi/util/generateSchemaExample.js +7 -0
- package/dist/lib/plugins/openapi/util/generateSchemaExample.js.map +1 -1
- package/lib/{OasProvider-Bf5zBDBY.js → OasProvider-1XEOsIiW.js} +2 -2
- package/lib/{OasProvider-Bf5zBDBY.js.map → OasProvider-1XEOsIiW.js.map} +1 -1
- package/lib/{OperationList-Cmiw1xm2.js → OperationList-DCJw6wXL.js} +108 -104
- package/lib/OperationList-DCJw6wXL.js.map +1 -0
- package/lib/{SchemaList-xZSf3IMh.js → SchemaList-qOHkDzSz.js} +3 -3
- package/lib/{SchemaList-xZSf3IMh.js.map → SchemaList-qOHkDzSz.js.map} +1 -1
- package/lib/{SchemaView-tHXTm5oM.js → SchemaView-D3hm65cc.js} +2 -2
- package/lib/{SchemaView-tHXTm5oM.js.map → SchemaView-D3hm65cc.js.map} +1 -1
- package/lib/{circular-DvuimBGQ.js → circular-CSSuz-LS.js} +2 -2
- package/lib/{circular-DvuimBGQ.js.map → circular-CSSuz-LS.js.map} +1 -1
- package/lib/{createServer-D9UvCoDf.js → createServer-CLbcVLbK.js} +3 -3
- package/lib/{createServer-D9UvCoDf.js.map → createServer-CLbcVLbK.js.map} +1 -1
- package/lib/{index-Cr9_YzOZ.js → index-RNAxx6IF.js} +6 -6
- package/lib/{index-Cr9_YzOZ.js.map → index-RNAxx6IF.js.map} +1 -1
- package/lib/zudoku.plugin-openapi.js +1 -1
- package/package.json +2 -2
- package/src/lib/plugins/openapi/util/generateSchemaExample.ts +10 -0
- package/lib/OperationList-Cmiw1xm2.js.map +0 -1
|
@@ -3,7 +3,7 @@ import "lucide-react";
|
|
|
3
3
|
import "./chunk-PVWAREVJ-BMhpCH5D.js";
|
|
4
4
|
import "./ui/Button.js";
|
|
5
5
|
import "./ZudokuContext-BUZ5hkWB.js";
|
|
6
|
-
import { y as e, U as n, z as s } from "./index-
|
|
6
|
+
import { y as e, U as n, z as s } from "./index-RNAxx6IF.js";
|
|
7
7
|
export {
|
|
8
8
|
e as GetNavigationOperationsQuery,
|
|
9
9
|
n as UNTAGGED_PATH,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zudoku",
|
|
3
|
-
"version": "0.64.
|
|
3
|
+
"version": "0.64.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"homepage": "https://zudoku.dev",
|
|
6
6
|
"repository": {
|
|
@@ -235,7 +235,7 @@
|
|
|
235
235
|
"rollup": "4.52.5",
|
|
236
236
|
"semver": "7.7.2",
|
|
237
237
|
"shiki": "3.14.0",
|
|
238
|
-
"sitemap": "
|
|
238
|
+
"sitemap": "9.0.0",
|
|
239
239
|
"strip-ansi": "7.1.2",
|
|
240
240
|
"tailwind-merge": "3.3.1",
|
|
241
241
|
"tailwindcss": "4.1.16",
|
|
@@ -104,6 +104,16 @@ export const generateSchemaExample = (
|
|
|
104
104
|
}, {});
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
+
// Check for property-level examples
|
|
108
|
+
if (
|
|
109
|
+
schema.examples &&
|
|
110
|
+
Array.isArray(schema.examples) &&
|
|
111
|
+
schema.examples.length > 0
|
|
112
|
+
) {
|
|
113
|
+
const randomIndex = Math.floor(Math.random() * schema.examples.length);
|
|
114
|
+
return schema.examples[randomIndex];
|
|
115
|
+
}
|
|
116
|
+
|
|
107
117
|
switch (schema.type) {
|
|
108
118
|
case "string":
|
|
109
119
|
return name || "string";
|