-
Notifications
You must be signed in to change notification settings - Fork 317
Open
Description
Using this code:
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, utoipa::ToSchema)]
#[serde(untagged)]
pub enum PlayerFilters {
And(Vec<Self>),
Id(Id),
CreatedAt(DateTime),
CreatedBy(NullId),
Number(Number<i64>),
WithEquipment(Box<EquipmentFilters>),
HasSkill(bool),
}if I generate schema from utoipa I get this error:
thread 'main' (19548) has overflowed its stack
if I remove the And(Vec<Self>), it works! Why?
Vec<> moves things already on the heap: I don't need Box.
If I remove #[serde(untagged)] is the same.
#1504 does not fix.
Metadata
Metadata
Assignees
Labels
No labels