Skip to content

Add documentation for YAML quirks in celpolicy #1186

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 5, 2025

Conversation

jnthntatum
Copy link
Collaborator

@jnthntatum jnthntatum commented Jun 5, 2025

Also add top-level description field.

The celpolicy parser has special handling for CEL expressions embedded in
the YAML document in order to preserve location information. This is used
to help the CEL compiler correctly highlight error location.

As a consequence, the CEL expression will include characters that are
normally not considered meaningful in YAML, and the literal and folded style
for multiline strings are treated identically.

Also add top-level description field.

The celpolicy parser has special handling for CEL expressions embedded
in the YAML document in order to preserve location information. This is
used to help the CEL compiler correctly highlight error location.

As a consequence, the CEL expression will include
characters that are normally not considered meaningful in YAML, and the
literal and folded style for multiline strings are treated identically.
@jnthntatum jnthntatum marked this pull request as ready for review June 5, 2025 19:12
@jnthntatum jnthntatum requested a review from l46kok June 5, 2025 19:12
@jnthntatum jnthntatum merged commit dc36eaa into google:master Jun 5, 2025
2 checks passed
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.

2 participants