Skip to content

Commit 7316fc9

Browse files
committed
fix: address failure when parsing policies.yml file
There seeems to be issues with the usage of the `deny_unknown_fields` and untagged enumerations. serde ends up confused and complains about perfectly valid files. See serde-rs/serde#1600 Signed-off-by: Flavio Castelli <fcastelli@suse.com>
1 parent 1677586 commit 7316fc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/config.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ impl PolicyGroupMember {
333333

334334
/// Describes a policy that can be either an individual policy or a group policy.
335335
#[derive(Deserialize, Debug, Clone)]
336-
#[serde(deny_unknown_fields, untagged, rename_all = "camelCase")]
336+
#[serde(untagged, rename_all = "camelCase")]
337337
pub enum PolicyOrPolicyGroup {
338338
/// An individual policy
339339
Policy {

0 commit comments

Comments
 (0)