fumadocs-openapi 8.1.9 → 8.1.10
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/playground/index.js
CHANGED
|
@@ -81,7 +81,7 @@ function getAuthorizationField(method, { schema: { document } }) {
|
|
|
81
81
|
item = requirements;
|
|
82
82
|
}
|
|
83
83
|
if (!item) {
|
|
84
|
-
console.warn(`Cannot find suitable security
|
|
84
|
+
console.warn(`Cannot find suitable security scheme for API Playground from ${JSON.stringify(security, null, 2)}. Only schemes with one requirement are allowed.`);
|
|
85
85
|
return;
|
|
86
86
|
}
|
|
87
87
|
const scheme = getSecurities(item, document)[0];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-security.d.ts","sourceRoot":"","sources":["../../src/utils/get-security.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,yBAAyB,EACzB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,MAAM,MAAM,QAAQ,GAAG,oBAAoB,GAAG;IAC5C,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAEF,wBAAgB,aAAa,CAC3B,WAAW,EAAE,WAAW,CAAC,yBAAyB,CAAC,EACnD,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAC,GAC9B,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"get-security.d.ts","sourceRoot":"","sources":["../../src/utils/get-security.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,yBAAyB,EACzB,oBAAoB,EACrB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD,MAAM,MAAM,QAAQ,GAAG,oBAAoB,GAAG;IAC5C,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAEF,wBAAgB,aAAa,CAC3B,WAAW,EAAE,WAAW,CAAC,yBAAyB,CAAC,EACnD,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAAC,GAC9B,QAAQ,EAAE,CAkBZ;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,GAAG,SAAS,CAQxE"}
|
|
@@ -3,7 +3,7 @@ export function getSecurities(requirement, document) {
|
|
|
3
3
|
const schemas = document.components?.securitySchemes ?? {};
|
|
4
4
|
for (const [key, scopes] of Object.entries(requirement)) {
|
|
5
5
|
if (!(key in schemas))
|
|
6
|
-
|
|
6
|
+
throw new Error(`Security scheme with name ${key} is not found, make sure to define referenced schemes.`);
|
|
7
7
|
const schema = schemas[key];
|
|
8
8
|
results.push({
|
|
9
9
|
...schema,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fumadocs-openapi",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.10",
|
|
4
4
|
"description": "Generate MDX docs for your OpenAPI spec",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"remark-rehype": "^11.1.2",
|
|
64
64
|
"shiki": "^3.4.0",
|
|
65
65
|
"xml-js": "^1.6.11",
|
|
66
|
-
"fumadocs-core": "15.3.
|
|
67
|
-
"fumadocs-ui": "15.3.
|
|
66
|
+
"fumadocs-core": "15.3.2",
|
|
67
|
+
"fumadocs-ui": "15.3.2"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"@scalar/api-client-react": "^1.2.32",
|