Skip to content

Teach jsonnet-lint about optional parameters of std.manifestYamlDoc#705

Merged
sparkprime merged 1 commit intogoogle:masterfrom
swgillespie:swgillespie/manifestYamlDoc
Jun 13, 2023
Merged

Teach jsonnet-lint about optional parameters of std.manifestYamlDoc#705
sparkprime merged 1 commit intogoogle:masterfrom
swgillespie:swgillespie/manifestYamlDoc

Conversation

@swgillespie
Copy link
Copy Markdown
Contributor

manifestYamlDoc takes two optional parameters, indent_array_in_object and quote_keys. This commit teaches jsonnet-lint about them so that it doesn't raise errors when you use them.

There are other stdlib library functions with this problem; the true solution is probably to auto-generate this from the stdlib AST, but this at least gets the linter happy with this particular function.

manifestYamlDoc takes two optional parameters, `indent_array_in_object` and `quote_keys`. This commit teaches jsonnet-lint about them so that it doesn't raise errors when you use them.

There are other stdlib library functions with this problem; the true solution is probably to auto-generate this from the stdlib AST, but this at least gets the linter happy with this particular function.
@google-cla
Copy link
Copy Markdown

google-cla Bot commented Jun 2, 2023

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@sparkprime
Copy link
Copy Markdown
Contributor

There is also the documentation which exists as a jsonnet file and I believe lists the params.

@sparkprime sparkprime merged commit 9639773 into google:master Jun 13, 2023
vhata pushed a commit to discord/go-jsonnet that referenced this pull request Aug 30, 2024
…oogle#705)

manifestYamlDoc takes two optional parameters, `indent_array_in_object` and `quote_keys`. This commit teaches jsonnet-lint about them so that it doesn't raise errors when you use them.

There are other stdlib library functions with this problem; the true solution is probably to auto-generate this from the stdlib AST, but this at least gets the linter happy with this particular function.
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