Closed Youx closed 6 months ago
This error happens if an enum unit variant is placed before an enum struct/tuple variant:
Reproduced with:
#[derive(serde_valid::Validate)] enum Works { VariantB(), VariantA, } #[derive(serde_valid::Validate)] enum Fails { VariantA, VariantB(), }
I was late in noticing the issue.
Thanks for the report 👍 I have fixed it.
This error happens if an enum unit variant is placed before an enum struct/tuple variant:
Reproduced with: