File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed
services/backend/src/routes Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -337,6 +337,12 @@ export const searchCredentialsSchema = {
337337 data : z . array ( SearchCredentialsResponseSchema ) . describe ( 'Array of matching credentials (metadata only, no secret values)' )
338338 } ) . describe ( 'Search completed successfully' ) , {
339339 } ) ,
340+ 400 : createSchema ( z . object ( {
341+ success : z . boolean ( ) . default ( false ) . describe ( 'Indicates if the operation was successful (false for errors)' ) ,
342+ error : z . string ( ) . describe ( 'Error message' ) ,
343+ details : z . array ( z . string ( ) ) . describe ( 'Validation error details' ) . optional ( )
344+ } ) . describe ( 'Bad Request - Validation error' ) , {
345+ } ) ,
340346 401 : createSchema ( z . object ( {
341347 success : z . boolean ( ) . default ( false ) . describe ( 'Indicates if the operation was successful (false for errors)' ) ,
342348 error : z . string ( ) . describe ( 'Error message' )
Original file line number Diff line number Diff line change @@ -36,6 +36,10 @@ export default async function listClients(server: FastifyInstance) {
3636 403 : {
3737 ...ERROR_RESPONSE_SCHEMA ,
3838 description : 'Forbidden - Insufficient permissions'
39+ } ,
40+ 500 : {
41+ ...ERROR_RESPONSE_SCHEMA ,
42+ description : 'Internal Server Error'
3943 }
4044 }
4145 }
Original file line number Diff line number Diff line change @@ -108,6 +108,13 @@ export default async function getRepoInfo(server: FastifyInstance) {
108108 success : { type : 'boolean' , default : false } ,
109109 error : { type : 'string' }
110110 }
111+ } ,
112+ 500 : {
113+ type : 'object' ,
114+ properties : {
115+ success : { type : 'boolean' , default : false } ,
116+ error : { type : 'string' }
117+ }
111118 }
112119 }
113120 }
You can’t perform that action at this time.
0 commit comments