22 lines
953 B
Diff
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 });
|