mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-24 01:00:51 -04:00
21 lines
496 B
TypeScript
21 lines
496 B
TypeScript
import { Type } from '@fastify/type-provider-typebox';
|
|
import { genericError } from '../types';
|
|
|
|
export const coderoadChallengeCompleted = {
|
|
body: Type.Object({
|
|
tutorialId: Type.String()
|
|
}),
|
|
headers: Type.Object({ 'coderoad-user-token': Type.String() }),
|
|
response: {
|
|
200: Type.Object({
|
|
type: Type.Literal('success'),
|
|
msg: Type.String()
|
|
}),
|
|
400: Type.Object({
|
|
type: Type.Literal('error'),
|
|
msg: Type.String()
|
|
}),
|
|
default: genericError
|
|
}
|
|
};
|