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 validation for pipeline and environment variables #47

Merged
merged 3 commits into from
Oct 24, 2024

Conversation

tobias-richter
Copy link
Contributor

When trying to set a duplicate variable (same name, same service) the API will exit with an generic error.
I have now added a validation with a more user friendly error output.

src/variables.rs Outdated
}
}

duplicates.into_iter().collect()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

here we can use a vector directly and do not need to convert the duplicates into an iter and collect it then.

Copy link
Collaborator

@BerSomBen BerSomBen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In find_duplicates , I changed ur impl to use a vector directly and do not need to convert the duplicates into an iter and collect it then.

@BerSomBen BerSomBen merged commit 21d123f into main Oct 24, 2024
6 checks passed
@BerSomBen BerSomBen deleted the feature/validate-env-and-pipeline-vars branch October 24, 2024 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants