Replies: 1 comment 3 replies
-
Hi, Currently in latest release 1.1.0 there is basically no support for this. But in master branch there is support for this which can be then achieved as follows: #[derive(Debug, Serialize, Deserialize, ToSchema)]
pub struct SomeComponent {
#[schema(value_type = Any)]
pub values: Value,
} This will be available in new 2.0.0 version once released. The syntax In current release 1.1.0 the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need to declare a free form object similar to this on a type on a schema. (https://swagger.io/docs/specification/data-models/data-types/ example stolen from the docs)
How can I declare this in a struct? I was thinking something like this.
Thanks in advance 👍
Beta Was this translation helpful? Give feedback.
All reactions