ParseUUIDPipeOptions


interface ParseUUIDPipeOptions {
  version?: '3' | '4' | '5' | '7'
  errorHttpStatusCode?: ErrorHttpStatusCode
  exceptionFactory?: (errors: string) => any
  optional?: boolean
}

Properties

Property Description
version?: '3' | '4' | '5' | '7'

UUID version to validate

errorHttpStatusCode?: ErrorHttpStatusCode

The HTTP status code to be used in the response when the validation fails.

exceptionFactory?: (errors: string) => any

A factory function that returns an exception object to be thrown if validation fails.

optional?: boolean

If true, the pipe will return null or undefined if the value is not provided