Skip to content

Commit

Permalink
fix: add missing one or many on prohibitions and obligations
Browse files Browse the repository at this point in the history
  • Loading branch information
wolf4ood committed Sep 29, 2024
1 parent 6636a8c commit f6b7b28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions edc-connector-client/src/types/policy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,10 @@ pub struct Policy {
#[serde_as(deserialize_as = "OneOrMany<_, PreferMany>")]
#[serde(rename = "permission", alias = "odrl:permission", default)]
permissions: Vec<Permission>,
#[serde_as(deserialize_as = "OneOrMany<_, PreferMany>")]
#[serde(rename = "obligation", alias = "odrl:obligation", default)]
obligations: Vec<Obligation>,
#[serde_as(deserialize_as = "OneOrMany<_, PreferMany>")]
#[serde(rename = "prohibition", alias = "odrl:prohibition", default)]
prohibitions: Vec<Prohibition>,
}
Expand Down

0 comments on commit f6b7b28

Please sign in to comment.