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

HCL function can() #687

Closed
johakoch opened this issue Jan 31, 2023 · 0 comments · Fixed by #699
Closed

HCL function can() #687

johakoch opened this issue Jan 31, 2023 · 0 comments · Fixed by #699
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@johakoch
Copy link
Collaborator

Provide the HCL function can() (https://pkg.go.dev/github.com/hashicorp/hcl/v2/ext/tryfunc):

{ for k in ["not_there", "lastname"] : k => request.json_body[k] if can(request.json_body[k]) }
@johakoch johakoch added the enhancement New feature or request label Jan 31, 2023
@johakoch johakoch self-assigned this Feb 1, 2023
@johakoch johakoch linked a pull request Feb 1, 2023 that will close this issue
@johakoch johakoch added this to the 1.13 milestone Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant