pub fn spec_of<T: OpenApi>() -> Value
The JSON for a utoipa document.
utoipa
If the document cannot be encoded as JSON, which would be a defect in the utoipa types rather than in anything a caller supplied.