Skip to content

Commit

Permalink
add some tisfy annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
khieta committed Jun 3, 2024
1 parent 3cfc30e commit 6bd39c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions cedar-policy/src/ffi/is_authorized.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ impl Diagnostics {
#[serde(rename_all = "camelCase")]
pub struct AuthorizationError {
/// Id of the policy where the error (or warning) occurred
#[cfg_attr(feature = "wasm", tsify(type = "string"))]
pub policy_id: PolicyId,
/// Error (or warning).
/// You can look at the `severity` field to see whether it is actually an
Expand Down
1 change: 1 addition & 0 deletions cedar-policy/src/ffi/validate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ impl Default for ValidationSettings {
#[serde(rename_all = "camelCase")]
pub struct ValidationError {
/// Id of the policy where the error (or warning) occurred
#[cfg_attr(feature = "wasm", tsify(type = "string"))]
pub policy_id: PolicyId,
/// Error (or warning) itself.
/// You can look at the `severity` field to see whether it is actually an
Expand Down

0 comments on commit 6bd39c3

Please sign in to comment.