Expand description
OpenAPI/Swagger protocol definition and parser/emitter.
OpenAPI/Swagger protocol definition.
OpenAPI uses a constrained multigraph schema theory
(colimit(ThGraph, ThConstraint, ThMulti)) and a W-type
instance theory (ThWType).
Vertex kinds: path, operation, parameter, request-body, response, schema-object, header, string, integer, number, boolean, array, object.
Edge kinds: prop, items, variant, ref.
Functionsยง
- emit_
openapi - Emit a
Schemaas anOpenAPIJSON document. - parse_
openapi - Parse an
OpenAPIJSON document into aSchema. - protocol
- Returns the
OpenAPIprotocol definition. - register_
theories - Register the component GATs for
OpenAPIwith a theory registry.