Eric Eastwood
2026-03-25 13:12:04 -05:00
parent 5a86084828
commit 7b02748af4

View File

@@ -82,6 +82,10 @@ pub struct Violation {
pub redirect_uri: Option<String>,
pub field: Option<String>,
// We flatten as policies expect `code` as another top-level field.
//
// This also means all of the extra fields from the variant will be splatted at this
// level which is fine (arbitrary).
#[serde(flatten)]
pub variant: Option<ViolationVariant>,
}