gifs and query params

This commit is contained in:
Puyodead1
2023-03-24 18:57:44 -04:00
parent 0d2a2c7258
commit 0dc5b19bd8
9 changed files with 251 additions and 131 deletions
+13
View File
@@ -202,6 +202,19 @@ function apiRoutes() {
}));
}
if (route.query) {
// map to array
const query = Object.entries(route.query).map(([k, v]) => ({
name: k,
in: "query",
required: v.required,
schema: { type: v.type },
description: v.description,
}));
obj.parameters = [...(obj.parameters || []), ...query];
}
obj.tags = [...(obj.tags || []), getTag(p)].unique();
specification.paths[path] = {