Skip to content

Conversation

@thomasqueirozb
Copy link
Contributor

@thomasqueirozb thomasqueirozb commented Jan 21, 2026

Summary

Adds a required description field to the Parameter struct to document what each function parameter does. This is a breaking change as all Parameter instantiations 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

  1. 718dec5 - Adds the new description field to the Parameter struct in src/compiler/function.rs

  2. d75af2b - Introduces update_parameter_descriptions.py which automates fetching parameter descriptions from Vector's docs.json file. This file (basically) generates the next commit.

  3. a1d2ec1 - Automatically generated descriptions. This commit can be skipped. I added all descriptions which matched the cue files but didn't add the TODOs

  4. b74b022 - Create new descriptions for undocumented parameters.

  5. 7143948 - Manually add descriptions for parameters that were documented but had a name missmatch (e.g. ip vs value, path vs value)

  6. 3a5ec83 - Removes the temporary python script

  7. 21589cf and later - formatting changes only

Change Type

  • Bug fix
  • New feature
  • Non-functional (chore, refactoring, docs)
  • Performance

Is this a breaking change?

  • Yes
  • No

How did you test this PR?

  • Verified code compiles with cargo check
  • Existing tests pass
  • Script successfully populates descriptions from docs.json
  • Manual verification of parameter descriptions in sample files

Does this PR include user facing changes?

  • Yes. Please add a changelog fragment based on
    our guidelines.
  • No. A maintainer will apply the "no-changelog" label to this PR.

References

NA

@thomasqueirozb thomasqueirozb marked this pull request as ready for review January 21, 2026 21:52
@thomasqueirozb thomasqueirozb requested a review from a team as a code owner January 21, 2026 21:52
@thomasqueirozb
Copy link
Contributor Author

Don't want to merge this today as this shouldn't make it into the release happening soon.

Comment on lines +42 to +49
- lower_upper
- upper_lower
- upper_upper
- acronym
- lower_digit
- upper_digit
- digit_lower
- digit_upper
Copy link
Contributor Author

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
Copy link
Member

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.

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.

3 participants