Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

docs: add description and security for openapi

adilson9223c4c685cf
diff --git a/backend/src/ee/routes/v1/project-role-router.ts b/backend/src/ee/routes/v1/project-role-router.ts
index 7f3be269cd..68303e9855 100644
--- a/backend/src/ee/routes/v1/project-role-router.ts
+++ b/backend/src/ee/routes/v1/project-role-router.ts
@@ -347,6 +347,12 @@ export const registerProjectRoleRouter = async (server: FastifyZodProvider) => {
schema: {
hide: false,
tags: [ApiDocsTags.ProjectRoles],
+ description: "Get a project role by ID",
+ security: [
+ {
+ bearerAuth: []
+ }
+ ],
params: z.object({
roleId: z.string().trim().describe(PROJECT_ROLE.GET_ROLE_BY_ID.roleId)
}),