Replies: 2 comments 5 replies
-
I see Putting
"web::Json" is the actix-web equivalent of raw JSON, and it is valid as input and output of endpoints, and I am sure the other web frameworks have an equivalent of this base layer type. |
Beta Was this translation helpful? Give feedback.
-
A quick attempt at building this failed because |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How do you define that a member can contain any type. i.e
value_type = Value
that results intype: [string,number,integer,object,array,boolean,null]
?This is needed if the endpoint or field can accept any valid JSON.
The docs for
value_type
at https://docs.rs/utoipa/latest/utoipa/derive.ToSchema.html doesnt explain this.It feels like
Value
might be a good shorthand for this, due toserde_json::Value
being the Rust mechanism for holding any JSON value.Beta Was this translation helpful? Give feedback.
All reactions