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

Added | string #5585

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

RashmitTopG
Copy link

What changes are being made and why?

Added a new StringFilter to the Kestra project, which converts numeric inputs and string representations of numbers into their string form. This feature enhances template flexibility by allowing users to handle numeric values as strings easily.
This PR closes #5528 .


How the changes have been QAed?

Example flow code demonstrating the use of the string filter in a Pebble template

template: |

  {{ 123 | string }}   # Expected output: "123"
  {{ "456.78" | string }}  # Expected output: "456.78"
  {{ "invalid" | string }}  # Expected to raise a PebbleException

This example shows how the new StringFilter behaves with different input types.


@RashmitTopG
Copy link
Author

@anna-geller I've submitted a pull request adding a StringFilter to the Kestra project that converts numbers to strings. Please review and suggest improvements if any .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To review
Development

Successfully merging this pull request may close these issues.

Provide a | string filter
2 participants