fix(api): adjust schema for 500 (#57268)

This commit is contained in:
Shaun Hamilton
2024-11-21 23:48:17 +02:00
committed by GitHub
parent 2bda6b3a19
commit ed083cc7d0
+14 -16
View File
@@ -5,21 +5,19 @@ export const examEnvironmentExams = {
'exam-environment-authorization-token': Type.String()
}),
response: {
200: Type.Union([
Type.Object({
exams: Type.Array(
Type.Object({
id: Type.String(),
config: Type.Object({
name: Type.String(),
note: Type.String(),
totalTimeInMS: Type.Number()
}),
canTake: Type.Boolean()
})
)
}),
STANDARD_ERROR
])
200: Type.Object({
exams: Type.Array(
Type.Object({
id: Type.String(),
config: Type.Object({
name: Type.String(),
note: Type.String(),
totalTimeInMS: Type.Number()
}),
canTake: Type.Boolean()
})
)
}),
500: STANDARD_ERROR
}
};