Skip to content

@graphty/graphty-element / session / parseSetDefinition

Function: parseSetDefinition() ​

parseSetDefinition(value): SetDefinition

Defined in: graphty-element/src/catalog/sets/parse.ts:763

Check a set definition and return its canonical form.

Door mode: anything malformed, and any kind or field this element does not know or has only reserved, is refused. Edge members must be in stable form; a write door that accepts a session edge id converts it before calling this.

Parameters ​

value ​

unknown

The candidate definition, from any source.

Returns ​

SetDefinition

The canonical definition.

Throws ​

A GraphtyError with code E_BAD_COMMAND. details.reason is "induced-edge-leaf" for a rule read induced that holds an edge leaf; a reserved field is named in details.field.