@nhtio/lucid-resourceful/joi
A modified version of the joi validation library which adds support for new custom schemas
Namespaces
| Namespace | Description |
|---|---|
| address | - |
| formula | - |
| guards | - |
| location | - |
Interfaces
| Interface | Description |
|---|---|
| AddRuleOptions | - |
| AlternativesSchema | Schema type for alternatives validation. |
| AnySchema | Base schema type for all validation schemas. |
| ArraySchema | Schema type for array validation. |
| ArraySortOptions | - |
| ArrayUniqueOptions | - |
| AsyncValidationOptions | - |
| Base64Options | - |
| BaseValidationOptions | - |
| BigIntSchema | Schema type for BigInt validation with comprehensive comparison operations. |
| BinarySchema | Schema type for binary data validation. |
| BooleanSchema | Schema type for boolean validation. |
| Cache | - |
| CacheConfiguration | - |
| CacheProvisionOptions | - |
| CoerceObject | - |
| CoerceResult | - |
| CompileOptions | - |
| Context | - |
| CreateErrorOptions | - |
| CustomHelpers | - |
| DatabaseQueryBuilderContract | Database query builder exposes the API to construct SQL query using fluent chainable API |
| DataUriOptions | - |
| DateSchema | Schema type for date validation. |
| DatetimeSchema | Schema for datetime validation with comprehensive formatting and comparison methods. |
| DbValidationOptions | Options for database-backed validation helpers such as uniqueInDb and existsInDb. |
| DependencyOptions | - |
| Description | - |
| DomainOptions | - |
| EmailOptions | - |
| Err | - |
| ErrorFormattingOptions | - |
| ErrorReport | - |
| ErrorValidationOptions | - |
| Extension | - |
| ExtensionFlag | - |
| ExtensionRule | - |
| ExtensionTerm | - |
| ExtensionTermManifest | - |
| ExternalHelpers | - |
| FunctionSchema | Schema type for function validation. |
| GetRuleOptions | - |
| GuidOptions | - |
| HexOptions | - |
| HierarchySeparatorOptions | - |
| I18nCallback | Callback function type for internationalization translation. |
| IpOptions | - |
| IsSchemaOptions | - |
| KnexConnectionConfigurations | - |
| LanguageMessageTemplate | - |
| LinkSchema | Schema type for link validation. |
| ModifyOptions | - |
| MutateRegisterOptions | - |
| NumberSchema | Schema type for number validation. |
| ObjectPatternOptions | - |
| ObjectSchema | Schema type for object validation. |
| PhoneSchema | Phone number validation schema interface extending AnySchema. Provides methods for validating and formatting phone numbers with various constraints. |
| QueryClientContract | Shape of the query client, that is used to retrieve instances of query builder |
| Reference | - |
| ReferenceOptions | - |
| RenameOptions | - |
| Root | - |
| RuleArgs | - |
| RuleOptions | - |
| SchemaInternals | - |
| SetFlagOptions | - |
| SetI18nCallback | Callback function type for setting up internationalization. |
| State | - |
| StringRegexOptions | - |
| StringSchema | Schema type for string validation. |
| SwitchCases | - |
| SwitchDefault | - |
| SymbolSchema | Schema type for symbol validation. |
| TopLevelDomainOptions | - |
| UriOptions | - |
| ValidationContext | - |
| ValidationError | - |
| ValidationErrorItem | - |
| ValidationOptions | - |
| ValidationRoot | Extended Joi root interface that includes custom schema types for additional validation scenarios. |
| ValidationWarning | - |
| WhenOptions | - |
| WhenSchemaOptions | - |
Type Aliases
Variables
| Variable | Description |
|---|---|
| decode | Decodes a base64-encoded schema string back into a usable validation schema. |
| encode | Encodes a validation schema into a compressed, base64-encoded string for transport between environments. |
| PhoneTypes | The PhoneTypes type represents the possible types of a phone number. It can be any of the keys of the PhoneNumberType object in the google-libphonenumber library, or 'INVALID' if the phone number is not valid. |
| tlds | - |
| ValidationError | Represents a validation error encountered during the validation of a payload. When using syncronous validation, this error is returned along an undefined value. When using asynchronous validation, this error is thrown. |
| validator | - |
| version | The current version of the package. |
Functions
| Function | Description |
|---|---|
| location | Returns the filename and line number of the caller in the call stack |
References
joi
Renames and re-exports validator