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<_, _>")]