Type object
Schema URL https://catalog.lintel.tools/schemas/schemastore/unist/latest.json
Source https://www.schemastore.org/unist.json

Validate with Lintel

npx @lintel/lintel check
Type: object

Syntactic units in unist syntax trees are called nodes, and implement the Node interface.

Properties

type string required

The type field is a non-empty string representing the variant of a node. This field can be used to determine the type a node implements.

position object

A position represents the location of a node in a source file. The value of the position field implements the Position interface. The position field must not be present if a node is generated.

2 nested properties
end object required

A point represents one place in a source file. The value of the point field implements the Point interface.

3 nested properties
column integer required

The column field (1-indexed integer) represents a column in a source file.

min=1
line integer required

The line field (1-indexed integer) represents a line in a source file.

min=1
offset integer

The offset field (0-indexed integer) represents a character in a source file.

min=0
start object required

A point represents one place in a source file. The value of the point field implements the Point interface.

3 nested properties
column integer required

The column field (1-indexed integer) represents a column in a source file.

min=1
line integer required

The line field (1-indexed integer) represents a line in a source file.

min=1
offset integer

The offset field (0-indexed integer) represents a character in a source file.

min=0
children []

The children field is a list representing the children of a node.

data object

The data field represents information from the ecosystem. The value of the data field implements the Data interface.

value

The value field can contain any value.

Definitions

Point object

A point represents one place in a source file. The value of the point field implements the Point interface.

column integer required

The column field (1-indexed integer) represents a column in a source file.

min=1
line integer required

The line field (1-indexed integer) represents a line in a source file.

min=1
offset integer

The offset field (0-indexed integer) represents a character in a source file.

min=0
Position object

A position represents the location of a node in a source file. The value of the position field implements the Position interface. The position field must not be present if a node is generated.

end object required

A point represents one place in a source file. The value of the point field implements the Point interface.

3 nested properties
column integer required

The column field (1-indexed integer) represents a column in a source file.

min=1
line integer required

The line field (1-indexed integer) represents a line in a source file.

min=1
offset integer

The offset field (0-indexed integer) represents a character in a source file.

min=0
start object required

A point represents one place in a source file. The value of the point field implements the Point interface.

3 nested properties
column integer required

The column field (1-indexed integer) represents a column in a source file.

min=1
line integer required

The line field (1-indexed integer) represents a line in a source file.

min=1
offset integer

The offset field (0-indexed integer) represents a character in a source file.

min=0