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

14 lines
619 B
Diff
Raw 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..ff348509b0e77b0b98e6e6db57c3355e3e0914f7 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] = {