Variable VALIDATE_ROUTEConst
VALIDATE_ROUTE: {
schema: {
body: TRecord<TString, TUnknown>;
response: {
"200": TArray<
TObject<
{
status: TUnion<
[TLiteral<"pass">, TLiteral<"fail">, TLiteral<"warn">],
>;
check: TString;
message: TString;
},
>,
>;
"400": TObject<{ error: TString }>;
};
};
config: { invalidMessage: string };
} = ...
Type Declaration
-
schema: {
body: TRecord<TString, TUnknown>;
response: {
"200": TArray<
TObject<
{
status: TUnion<
[TLiteral<"pass">, TLiteral<"fail">, TLiteral<"warn">],
>;
check: TString;
message: TString;
},
>,
>;
"400": TObject<{ error: TString }>;
};
}
-
config: { invalidMessage: string }
POST /api/validate.