Skip to content

Conversation

cdisselkoen
Copy link
Contributor

Issue #, if available:

cedar-policy/cedar#921

Signed-off-by: Craig Disselkoen <[email protected]>
@cdisselkoen cdisselkoen requested review from aaronjeline and khieta May 29, 2024 20:03
/// Decode the object into its string representation
pub fn get_string_repr(&self) -> String {
self.id.to_string()
self.id.as_ref().to_string()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not .escaped()? That would have been the original behavior, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, and I can change it. I thought that perhaps folks manipulating the string in Java might expect to manipulate the unescaped string. But I suppose no one has complained about the current behavior

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No strong preference, I was just wondering if the behavior change was intentional. I think both options are reasonable, but might be better stick with the status quo 🤷‍♀️

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to .escaped()

Signed-off-by: Craig Disselkoen <[email protected]>
@cdisselkoen cdisselkoen merged commit a328986 into main May 30, 2024
@cdisselkoen cdisselkoen deleted the cdisselkoen/update-for-cedar-921 branch May 30, 2024 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants