You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The formatter currently does a horrible job in formatting a sequence of identifiers. For instance,
// An example from RFC
permit(
principal is User,
action == Action::"preview",
resource == Movie::"Blockbuster"
) when {
// extended has
principal has
// contactInfo
contactInfo.
// address
address.
// zip
zip &&
// we are safe to access all attributes
principal.contactInfo.address.zip == "90210"
};
is formatted into,
// An example from RFC
permit (
principal is User,
action == Action::"preview",
resource == Movie::"Blockbuster"
)
when
{
// extended has
principal
has
// contactInfo
contactInfo.
// address
address
.
// zip
zip &&
// we are safe to access all attributes
principal.contactInfo
.address
.zip == "90210"
};
Describe alternatives you've considered
No response
Additional context
No response
Is this something that you'd be interested in working on?
👋 I may be able to implement this internal improvement
⚠️ This feature might incur a breaking change
The text was updated successfully, but these errors were encountered:
shaobo-he-aws
added
pending-triage
The cedar maintainers haven't looked at this yet. Automicaly added to all new issues.
internal-improvement
Refactoring, minor performance improvement, or other changes that Cedar users may never notice
labels
Nov 27, 2024
shaobo-he-aws
changed the title
Formatting a sequence of identifiers
Improve formatting of a sequence of identifiers
Nov 27, 2024
shaobo-he-aws
added
papercut
Small annoyances in the Cedar SDK. Lower priority fixes than bugs. Smaller than a fature request
and removed
pending-triage
The cedar maintainers haven't looked at this yet. Automicaly added to all new issues.
labels
Nov 27, 2024
Describe the improvement you'd like to request
The formatter currently does a horrible job in formatting a sequence of identifiers. For instance,
is formatted into,
Describe alternatives you've considered
No response
Additional context
No response
Is this something that you'd be interested in working on?
The text was updated successfully, but these errors were encountered: