@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.
@@ -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) {
package/dist/schema.js CHANGED
@@ -90,7 +90,7 @@ class SchemaService {
90
90
  }
91
91
  catch (e) {
92
92
  console.log("**You are probably using 'node ace serve --hmr', which is not supported yet. Use 'node ace serve --watch' instead.**");
93
- console.error(e.message);
93
+ console.error(e);
94
94
  }
95
95
  return validators;
96
96
  }
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: ${options?.persistAuthorization},
118
+ persistAuth: true,
119
119
  url: '${url}',
120
- proxyUrl: '${proxyUrl}',
121
120
  expandAllResponses: true,
122
121
  authentication: {
123
122
  preferredSecurityScheme: '${options?.defaultSecurityScheme}',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@necessarylion/adonis-autoswagger",
3
- "version": "0.0.12",
3
+ "version": "0.0.14",
4
4
  "description": "Auto-Generate swagger docs for AdonisJS",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",