@necessarylion/adonis-autoswagger 0.0.12 → 0.0.14
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 +1 -1
- package/dist/schema.js +1 -1
- package/dist/ui.js +1 -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]
|
|
371
|
+
const required = this.schemas[schema]?.required ?? [];
|
|
372
372
|
const parameters = [];
|
|
373
373
|
try {
|
|
374
374
|
for (const key in properties) {
|
package/dist/schema.js
CHANGED
package/dist/ui.js
CHANGED
|
@@ -115,9 +115,8 @@ class UIService {
|
|
|
115
115
|
<script src="https://cdn.jsdelivr.net/npm/@scalar/api-reference"></script>
|
|
116
116
|
<script>
|
|
117
117
|
Scalar.createApiReference('#app', {
|
|
118
|
-
persistAuth:
|
|
118
|
+
persistAuth: true,
|
|
119
119
|
url: '${url}',
|
|
120
|
-
proxyUrl: '${proxyUrl}',
|
|
121
120
|
expandAllResponses: true,
|
|
122
121
|
authentication: {
|
|
123
122
|
preferredSecurityScheme: '${options?.defaultSecurityScheme}',
|