Validates the given input against the configuration JSON schema.

Errors can be accessed via the errors property of this function.

  • Parameters

    • this: any
    • data: any
    • OptionaldataCxt: DataValidationCxt<string | number>

    Returns data is Config

    true if the input is valid, false otherwise.

Properties

errors?: null | ErrorObject<string, Record<string, any>, unknown>[]
evaluated?: Evaluated
schema: AnySchema
schemaEnv: SchemaEnv
source?: SourceCode