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

Semantics of object assertions #776

Open
skuzzle opened this issue Oct 22, 2024 · 0 comments
Open

Semantics of object assertions #776

skuzzle opened this issue Oct 22, 2024 · 0 comments

Comments

@skuzzle
Copy link

skuzzle commented Oct 22, 2024

Hey,

I'm trying to understand the semantics of std.prune with regard to assertions. Specifically I'm wondering why:

$ jsonnet -e "std.prune({assert false})"                                     
{ }

doesn't raise an exception.

Is this a bug or does it actually make sense? I don't think the specification describes in detail at which point object assertions are to be evaluated, that's why I'm asking.

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

No branches or pull requests

1 participant