This repository has been archived on 2024-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
wikipedia-game-solver/patches/@tuyau__openapi@0.2.0.patch

22 lines
953 B
Diff
Raw Permalink Normal View History

2024-08-18 02:31:02 +02:00
diff --git a/build/chunk-DFECKFQT.js b/build/chunk-DFECKFQT.js
index 0740bf03f8c9de643f09fdcf02c43e40eb5efa55..c17063ca57f8d4049907c7ccf2218cbaaa6bcc93 100644
2024-08-18 02:31:02 +02:00
--- a/build/chunk-DFECKFQT.js
+++ b/build/chunk-DFECKFQT.js
@@ -266,7 +266,7 @@ var OpenApiGenerator = class {
for (const prop of type.getProperties()) {
const propName = prop.getName();
const type2 = prop.getValueDeclaration()?.getType();
- if (!type2)
+ if (!type2 || (mode === 'request' && ['cookies', 'headers', 'params'].includes(propName)))
continue;
if (type2.isArray()) {
properties2[propName] = {
@@ -464,7 +464,6 @@ var OpenApiGenerator = class {
const openApiDoc = defu(this.config.openapi?.documentation, {
openapi: "3.1.0",
info: { title: "AdonisJS API", version: "1.0.0" },
- servers: [{ url: "http://localhost:3333" }],
paths: {}
});
this.#generateApiDoc({ definition, openApiDoc });