• Validates given JSON value against given JSON schema.

    Type Parameters

    Parameters

    • schema: AnySchema | JsonTypedSchema<T>

      The JSON schema

    • value: JsonValue

      The JSON value to validate

    • Optional valueName: string

      A name or title for the value. Used in the error message.

    Returns T

    Throws

    JsonValidationError - If a validation error occurs.

Generated using TypeDoc