ruwuma/crates/ruma-common/tests/it/api/ui/serde-flatten-request-body.stderr
Kévin Commaille f05d0e03a1 api: Disallow #[serde(flatten)] for single-body-fields of requests and responses
`#[ruma_api(body)]` must be used instead.
2024-12-15 03:07:49 -05:00

7 lines
244 B
Plaintext

error: Use `#[ruma_api(body)]` to represent the JSON body as a single field
--> tests/it/api/ui/serde-flatten-request-body.rs:23:5
|
23 | / #[serde(flatten)]
24 | | pub foo: CustomRequestBody,
| |______________________________^