-
Notifications
You must be signed in to change notification settings - Fork 111
feat!(stdlib): add required description field to Parameter #1610
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
base: main
Are you sure you want to change the base?
Conversation
This reverts commit d75af2b.
|
Don't want to merge this today as this shouldn't make it into the release happening soon. |
| - lower_upper | ||
| - upper_lower | ||
| - upper_upper | ||
| - acronym | ||
| - lower_digit | ||
| - upper_digit | ||
| - digit_lower | ||
| - digit_upper |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This list can be improved so that it is generated instead of hard coded but that'd make this PR even bigger
| @@ -0,0 +1,4 @@ | |||
| The `Parameter` struct now requires a `description` field. Custom VRL functions must provide a | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can remove this changelog; VRL users are not really affected by this and the change is easy to understand by devs.
Summary
Adds a required
descriptionfield to theParameterstruct to document what each function parameter does. This is a breaking change as allParameterinstantiations must now include a description.Review Note: This PR is best reviewed commit-by-commit. Some commits contain automated changes and can be skipped during review.
Commits Overview
718dec5 - Adds the new
descriptionfield to theParameterstruct insrc/compiler/function.rsd75af2b - Introduces
update_parameter_descriptions.pywhich automates fetching parameter descriptions from Vector'sdocs.jsonfile. This file (basically) generates the next commit.a1d2ec1 - Automatically generated descriptions. This commit can be skipped. I added all descriptions which matched the cue files but didn't add the TODOs
b74b022 - Create new descriptions for undocumented parameters.
7143948 - Manually add descriptions for parameters that were documented but had a name missmatch (e.g.
ipvsvalue,pathvsvalue)3a5ec83 - Removes the temporary python script
21589cf and later - formatting changes only
Change Type
Is this a breaking change?
How did you test this PR?
cargo checkDoes this PR include user facing changes?
our guidelines.
References
NA