Skip to content

Commit

Permalink
feat: add allowed resources error types (#1957)
Browse files Browse the repository at this point in the history
  • Loading branch information
Silhoue authored Jul 8, 2024
1 parent f6f5453 commit d946440
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/types/validation-error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@ export interface TypeValidationError extends BaseValidationError {
type: string
}

export interface AllowedResourceValidationError extends BaseValidationError {
name: 'allowedResource'
code: string
}
export interface AllowedResourcesValidationError extends BaseValidationError {
name: 'allowedResources'
contentTypeId?: string[]
}

export type ValidationError =
| SizeValidationError
| RangeValidationError
Expand All @@ -90,4 +99,6 @@ export type ValidationError =
| NotResolvableValidationError
| UnknownValidationError
| TypeValidationError
| AllowedResourceValidationError
| AllowedResourcesValidationError
| BaseValidationError

0 comments on commit d946440

Please sign in to comment.