Skip to main content

DefinitionSchemaError

Thrown when a definition document does not have the shape its schema requires.

@group

Errors/Definition

@throws

When the definition file or the rules file fails its schema.

@throws

When the definition declares a version octo has no schema for.

@throws

When the definition holds a value that contains itself.

Hierarchy

Index

Constructors

Properties

Constructors

constructor

  • Parameters

    • message: string

      The error message.

    • document: string

      The document that failed.

    • failures: string[] = []

      Each failure found in it.

    Returns DefinitionSchemaError

Properties

readonlydocument

document: string

The document that failed, such as Definition file.

readonlyfailures

failures: string[]

Each schema failure, one line each.

Page Options