Fix: Remove security field from schema due to api key-only auth

This commit is contained in:
Daniel Hougaard
2024-04-18 20:51:18 +02:00
parent d71d59e399
commit 5537b00a26
2 changed files with 0 additions and 15 deletions
@@ -36,11 +36,6 @@ export const registerProjectRouter = async (server: FastifyZodProvider) => {
}, },
schema: { schema: {
description: "Return encrypted project key", description: "Return encrypted project key",
security: [
{
apiKeyAuth: []
}
],
params: z.object({ params: z.object({
workspaceId: z.string().trim().describe(PROJECTS.GET_KEY.workspaceId) workspaceId: z.string().trim().describe(PROJECTS.GET_KEY.workspaceId)
}), }),
@@ -85,11 +85,6 @@ export const registerUserRouter = async (server: FastifyZodProvider) => {
}, },
schema: { schema: {
description: "Return organizations that current user is part of", description: "Return organizations that current user is part of",
security: [
{
apiKeyAuth: []
}
],
response: { response: {
200: z.object({ 200: z.object({
organizations: OrganizationsSchema.array() organizations: OrganizationsSchema.array()
@@ -217,11 +212,6 @@ export const registerUserRouter = async (server: FastifyZodProvider) => {
}, },
schema: { schema: {
description: "Retrieve the current user on the request", description: "Retrieve the current user on the request",
security: [
{
apiKeyAuth: []
}
],
response: { response: {
200: z.object({ 200: z.object({
user: UsersSchema.merge(UserEncryptionKeysSchema.omit({ verifier: true })) user: UsersSchema.merge(UserEncryptionKeysSchema.omit({ verifier: true }))