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

Allow the uptime check address field to be more permissive #80

Merged
merged 1 commit into from
Aug 9, 2022

Conversation

tomasbasham
Copy link
Member

At present the uptime check address field will only accept values that
begin with an HTTP scheme or are valid IP addresses. This prevents
certain values from being used that would make more sense for particular
test types - for example ICMP, and TCP.

This commit removes the validation from the address field entirely as
otherwise the variation of values would make the field too difficult to
validate.

Description: "URL or IP address of the server under test",
ValidateFunc: validation.Any(validation.IsURLWithHTTPorHTTPS, validation.IsIPAddress),
Description: "URL, FQDN, or IP address of the server under test",
ValidateFunc: validation.StringIsNotEmpty,
Copy link
Member Author

Choose a reason for hiding this comment

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

The API itself will go most of the way to validate this value anyway

At present the uptime check address field will only accept values that
begin with an HTTP scheme or are valid IP addresses. This prevents
certain values from being used that would make more sense for particular
test types - for example ICMP, and TCP.

This commit removes the validation from the address field entirely as
otherwise the variation of values would make the field too difficult to
validate.
@tomasbasham tomasbasham force-pushed the remove-validation-from-uptime-address-field branch from 077a01e to a600ab8 Compare August 9, 2022 16:19
@tomasbasham tomasbasham requested a review from a team as a code owner August 9, 2022 16:19
@tomasbasham tomasbasham merged commit d13808c into master Aug 9, 2022
@tomasbasham tomasbasham deleted the remove-validation-from-uptime-address-field branch August 9, 2022 16:27
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