mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
chore(deps): update fastify (#58924)
This commit is contained in:
committed by
GitHub
parent
7e72dd8d11
commit
c2df388d93
+1
-1
@@ -21,7 +21,7 @@
|
||||
"date-fns": "2.30.0",
|
||||
"dotenv": "16.4.5",
|
||||
"fast-uri": "2.3.0",
|
||||
"fastify": "4.26.1",
|
||||
"fastify": "4.29.0",
|
||||
"fastify-plugin": "4.5.1",
|
||||
"joi": "17.12.2",
|
||||
"jsonwebtoken": "9.0.2",
|
||||
|
||||
@@ -14,15 +14,14 @@ export const saveChallenge = {
|
||||
200: Type.Object({
|
||||
savedChallenges: Type.Array(savedChallenge)
|
||||
}),
|
||||
400: Type.Object({
|
||||
message: Type.Literal(
|
||||
'That does not appear to be a valid challenge submission.'
|
||||
),
|
||||
type: Type.Literal('error')
|
||||
}),
|
||||
403: Type.Union([
|
||||
Type.Literal('That challenge type is not saveable.'),
|
||||
genericError
|
||||
400: Type.Union([
|
||||
Type.Object({
|
||||
message: Type.Literal(
|
||||
'That does not appear to be a valid challenge submission.'
|
||||
),
|
||||
type: Type.Literal('error')
|
||||
}),
|
||||
Type.Literal('That challenge type is not saveable.')
|
||||
]),
|
||||
default: genericError
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user