mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(api): adjust schema for 500 (#57268)
This commit is contained in:
@@ -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
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user