Skip to content

Commit 3cde3e1

Browse files
refactor: remove unused format rules from response schema (freeCodeCamp#60538)
1 parent c754f29 commit 3cde3e1

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

api/src/schemas/user/get-session-user.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,7 @@ export const getSessionUser = {
4848
),
4949
quizAttempts: Type.Array(
5050
Type.Object({
51-
challengeId: Type.String({
52-
format: 'objectid',
53-
maxLength: 24,
54-
minLength: 24
55-
}),
51+
challengeId: Type.String(),
5652
quizId: Type.String(),
5753
timestamp: Type.Number()
5854
})
@@ -100,7 +96,7 @@ export const getSessionUser = {
10096
partiallyCompletedChallenges: Type.Array(
10197
Type.Object({ id: Type.String(), completedDate: Type.Number() })
10298
),
103-
picture: Type.String(), // TODO(Post-MVP): format as url/uri?
99+
picture: Type.String(),
104100
points: Type.Number(),
105101
portfolio: Type.Array(
106102
Type.Object({

0 commit comments

Comments
 (0)