pub fn to_value<T: Serialize + ?Sized>(data: &T) -> Result<Value, Error>
Returns an error if the OpenAPI document cannot be serialized.
OpenAPI