Skip to main content

Module request

Module request 

Source
Expand description

The /v1/systemone request, parsed from JSON and validated the way spec/03-api.md describes.

Validation collects every problem instead of stopping at the first, and reports each one in FastAPI’s shape (loc, msg, type, input), because that is what Jev returns and what its SDKs parse. Parsing works on a serde_json::Value built with preserve_order, so questions and choice labels keep the order they were sent in.

Structs§

ChoiceOption
One choice option. The description is None when it was null.
Limits
The limits and the few rules where Jev and Laya disagree.
Problem
One validation problem, in the shape FastAPI reports it.
Question
One validated question.
Request
A validated request.

Enums§

Criteria
The criteria of one question, in the shape its type takes.
Loc
One element of an error location.
QType
The three question types.

Functions§

parse
Parse and validate a request body.