Skip to content

Commit ff5bd0a

Browse files
Cherry-pick #939 to 3.2.x (#940)
Signed-off-by: Craig Disselkoen <[email protected]> Co-authored-by: Victor Moreno <[email protected]>
1 parent 8ef2571 commit ff5bd0a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cedar-policy/src/ffi/is_authorized.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -443,13 +443,13 @@ pub enum PartialAuthorizationAnswer {
443443
#[serde(rename_all = "camelCase")]
444444
pub struct AuthorizationCall {
445445
/// The principal taking action
446-
#[cfg_attr(feature = "wasm", tsify(type = "string|{type: string, id: string}"))]
446+
#[cfg_attr(feature = "wasm", tsify(type = "{type: string, id: string}"))]
447447
principal: Option<JsonValueWithNoDuplicateKeys>,
448448
/// The action the principal is taking
449-
#[cfg_attr(feature = "wasm", tsify(type = "string|{type: string, id: string}"))]
449+
#[cfg_attr(feature = "wasm", tsify(type = "{type: string, id: string}"))]
450450
action: JsonValueWithNoDuplicateKeys,
451451
/// The resource being acted on by the principal
452-
#[cfg_attr(feature = "wasm", tsify(type = "string|{type: string, id: string}"))]
452+
#[cfg_attr(feature = "wasm", tsify(type = "{type: string, id: string}"))]
453453
resource: Option<JsonValueWithNoDuplicateKeys>,
454454
/// The context details specific to the request
455455
#[serde_as(as = "MapPreventDuplicates<_, _>")]

0 commit comments

Comments
 (0)