Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

validate name field value #5

Open
fho opened this issue Oct 28, 2021 · 1 comment
Open

validate name field value #5

fho opened this issue Oct 28, 2021 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@fho
Copy link
Contributor

fho commented Oct 28, 2021

According to the admin panel the name field is only allowed to contain "(letters and numbers only)" (https://panel.bunny.net/pullzones/add).

Add a validation function that ensures it.

@fho fho added enhancement New feature or request good first issue Good for newcomers labels Oct 28, 2021
@fho
Copy link
Contributor Author

fho commented Nov 9, 2021

According to the API error message, it also supports hyphens:

Error: creating pull zone failed: http-request to https://api.bunny.net/pullzone failed: Bad Request (400), pullzone.validation: Name, PullZone name must consist of numbers, letters and hyphens only.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers
Development

No branches or pull requests

1 participant