From ff5bd0ab2706883d6b867935109bce206771adf9 Mon Sep 17 00:00:00 2001 From: Craig Disselkoen Date: Fri, 31 May 2024 10:02:36 -0700 Subject: [PATCH] Cherry-pick #939 to 3.2.x (#940) Signed-off-by: Craig Disselkoen Co-authored-by: Victor Moreno --- cedar-policy/src/ffi/is_authorized.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cedar-policy/src/ffi/is_authorized.rs b/cedar-policy/src/ffi/is_authorized.rs index cdf08a9a8..a0f588936 100644 --- a/cedar-policy/src/ffi/is_authorized.rs +++ b/cedar-policy/src/ffi/is_authorized.rs @@ -443,13 +443,13 @@ pub enum PartialAuthorizationAnswer { #[serde(rename_all = "camelCase")] pub struct AuthorizationCall { /// The principal taking action - #[cfg_attr(feature = "wasm", tsify(type = "string|{type: string, id: string}"))] + #[cfg_attr(feature = "wasm", tsify(type = "{type: string, id: string}"))] principal: Option, /// The action the principal is taking - #[cfg_attr(feature = "wasm", tsify(type = "string|{type: string, id: string}"))] + #[cfg_attr(feature = "wasm", tsify(type = "{type: string, id: string}"))] action: JsonValueWithNoDuplicateKeys, /// The resource being acted on by the principal - #[cfg_attr(feature = "wasm", tsify(type = "string|{type: string, id: string}"))] + #[cfg_attr(feature = "wasm", tsify(type = "{type: string, id: string}"))] resource: Option, /// The context details specific to the request #[serde_as(as = "MapPreventDuplicates<_, _>")]