Skip to main content

parse_jsonapi

Function parse_jsonapi 

Source
pub fn parse_jsonapi(json: &Value) -> Result<Schema, ProtocolError>
Expand description

Parse a JSON:API schema document into a Schema.

Expects a JSON object describing resource types with their attributes and relationships.

ยงErrors

Returns ProtocolError if parsing or schema construction fails.