@necessarylion/adonis-autoswagger 0.0.7 → 0.0.8

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/example.js CHANGED
@@ -125,7 +125,6 @@ class ExampleGenerator {
125
125
  content: {
126
126
  "application/json": {
127
127
  schema: paginated === "true" ? paginatedSchema : normalArraySchema,
128
- example: paginated === "true" ? paginatedEx : [ex],
129
128
  },
130
129
  },
131
130
  };
@@ -139,7 +138,6 @@ class ExampleGenerator {
139
138
  schema: {
140
139
  $ref: "#/components/schemas/" + rawRef,
141
140
  },
142
- example: ex,
143
141
  },
144
142
  },
145
143
  };
package/dist/schema.js CHANGED
@@ -37,7 +37,9 @@ class SchemaService {
37
37
  async getSchemas() {
38
38
  let schemas = {
39
39
  Any: {
40
- description: "Any JSON object not defined as schema",
40
+ type: 'any',
41
+ description: "Any value",
42
+ examples: [true, false, 1, "foo", { foo: "bar" }],
41
43
  },
42
44
  };
43
45
  schemas = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@necessarylion/adonis-autoswagger",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Auto-Generate swagger docs for AdonisJS",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",