wikipedia-game-solver/patches/@tuyau__openapi@0.2.0.patch
Théo LUDWIG 4e707008f8
All checks were successful
Chromatic / chromatic (push) Successful in 1m55s
CI / ci (push) Successful in 4m33s
CI / commitlint (push) Successful in 15s
chore(api): improve DX (Developer Experience)
2024-08-19 22:11:33 +01:00

22 lines
953 B
Diff

diff --git a/build/chunk-DFECKFQT.js b/build/chunk-DFECKFQT.js
index 0740bf03f8c9de643f09fdcf02c43e40eb5efa55..c17063ca57f8d4049907c7ccf2218cbaaa6bcc93 100644
--- 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 });