📝 fix Swagger docs (#355)

This commit is contained in:
Anton Shepilov
2024-02-02 19:37:53 +03:00
committed by GitHub
parent 5621d6b305
commit b35687829c
4 changed files with 18 additions and 5 deletions
@@ -130,6 +130,17 @@ export const getUserSchema = {
required: ["resource"],
},
},
tags: ["User"],
params: {
type: "object",
description: "Users",
properties: {
id: {
description: "User ID",
type: "string",
},
},
},
};
export const setUserPreferencesSchema = {
@@ -146,6 +157,7 @@ export const setUserPreferencesSchema = {
},
required: [] as any[],
},
tags: ["User"],
response: {
"2xx": userObjectSchema.properties.preferences,
},