You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to be able to use min_items with HashSet<T>, but it is not currently supported. The error looks like:
Diagnostics:
the trait bound `std::collections::HashSet<MyType>: std::ops::Deref` is not satisfied
the trait `poem_openapi::Validator<T>` is implemented for `poem_openapi::validation::MinItems`
required for `poem_openapi::validation::MinItems` to implement `poem_openapi::Validator<std::collections::HashSet<MyType>>` [E0277]
I figure it makes sense for the feature request to also encompass BTreeSet and maybe tuples of a single type.
Description of the feature
I'd like to be able to use
min_items
withHashSet<T>
, but it is not currently supported. The error looks like:I figure it makes sense for the feature request to also encompass BTreeSet and maybe tuples of a single type.
Code example (if possible)
I'm willing to provide a PR if this feature would be accepted.
The text was updated successfully, but these errors were encountered: