@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 +0 -2
- package/dist/schema.js +3 -1
- package/package.json +1 -1
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
|
-
|
|
40
|
+
type: 'any',
|
|
41
|
+
description: "Any value",
|
|
42
|
+
examples: [true, false, 1, "foo", { foo: "bar" }],
|
|
41
43
|
},
|
|
42
44
|
};
|
|
43
45
|
schemas = {
|