Interface SchemaProvider

An interface to be implemented by objects that initialize Joi schema objects.

Hierarchy

  • SchemaProvider

Properties

Properties

init: ((props: InitSchemaProps) => Promise<AnySchema<any>>)

Type declaration

name: string | (() => string)

Name of the schema that this provider initializes.

schema?: ((props: SchemaProps) => ObjectSchema<any>)

Type declaration

    • (props: SchemaProps): ObjectSchema<any>
    • Create a schema used to validate properties used to initialize a new schema.

      Parameters

      • props: SchemaProps

      Returns ObjectSchema<any>

Generated using TypeDoc