@necessarylion/adonis-autoswagger 0.0.10 → 0.0.11
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/auto_swagger.js +2 -2
- package/package.json +1 -1
package/dist/auto_swagger.js
CHANGED
|
@@ -368,7 +368,7 @@ class AutoSwagger {
|
|
|
368
368
|
if (!schema)
|
|
369
369
|
return [];
|
|
370
370
|
const properties = this.schemas[schema].properties;
|
|
371
|
-
const required = this.schemas[schema].required;
|
|
371
|
+
const required = this.schemas[schema].required ?? [];
|
|
372
372
|
const parameters = [];
|
|
373
373
|
try {
|
|
374
374
|
for (const key in properties) {
|
|
@@ -381,7 +381,7 @@ class AutoSwagger {
|
|
|
381
381
|
});
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
catch {
|
|
384
|
+
catch (e) {
|
|
385
385
|
return [];
|
|
386
386
|
}
|
|
387
387
|
return parameters;
|