Skip to main content

Module jsonapi

Module jsonapi 

Source
Expand description

JSON:API protocol definition and parser/emitter. JSON:API protocol definition.

JSON:API uses a constrained multigraph schema theory (colimit(ThGraph, ThConstraint, ThMulti)) and a W-type instance theory (ThWType).

Vertex kinds: resource-type, attribute, relationship, string, integer, number, boolean, array, object.

Edge kinds: prop, ref.

Functionsยง

emit_jsonapi
Emit a Schema as a JSON:API schema document.
parse_jsonapi
Parse a JSON:API schema document into a Schema.
protocol
Returns the JSON:API protocol definition.
register_theories
Register the component GATs for JSON:API with a theory registry.