fix: admin API key page fixes (#1360)

This commit is contained in:
Jiralite authored and GitHub committed 2026-07-10 16:32:30 +00:00
1 parent 6064bdf0e7
commit 097fa9d9ce
13 files changed
+188 -126

No files matched your search

@@ -27,13 +27,8 @@ export class InputValidationError extends BadRequestError {
return new InputValidationError([{path, message}]);
}
static createMultiple(
errors: Array<{
field: string;
message: string;
}>,
): InputValidationError {
return new InputValidationError(errors.map((e) => ({path: e.field, message: e.message})));
static createMultiple(errors: Array<ValidationError>): InputValidationError {
return new InputValidationError(errors);
}
static fromCode(path: string, code: ValidationErrorCode, variables?: Record<string, unknown>): InputValidationError {