Skip to content
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

docs: Add section on built-in function errors #4024

Merged
merged 1 commit into from
Nov 17, 2021

Conversation

tsandall
Copy link
Member

Fixes #3686

Signed-off-by: Torin Sandall [email protected]

@tsandall
Copy link
Member Author

I haven't tested the live docs yet. I'll amend the commit if anything is broken.

srenatus
srenatus previously approved these changes Nov 17, 2021
docs/content/policy-language.md Show resolved Hide resolved
logic. If error handling is required, the built-in function call can be negated
to test for undefined. For example:

```live:eg/errors:module,merge_down
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the / trips up live blocks,

const GROUP_NAME_FRAGMENT_REG_EXP = '\\w+'

@tsandall tsandall merged commit 639adf8 into open-policy-agent:main Nov 17, 2021
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.

Update docs to include information on strict-builtin-errors
2 participants