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

Add basic backend validation for selectLinks #2510

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

tw4l
Copy link
Member

@tw4l tw4l commented Mar 24, 2025

Follow-up to #2152

Related to #2487

This PR provides very basic validation of the config.selectLinks argument on workflow creation and update. Namely, it checks that:

  • config.selectLinks is not an empty array
  • Each entry consists of two non-empty text sequences separated by ->

At this point we're not validating the actual CSS selector on the backend, though we could add that down the road.

Tests have been added accordingly.

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

Successfully merging this pull request may close these issues.

2 participants