Skip to content

Conversation

nodivbyzero
Copy link
Contributor

Fixes Or Enhances

This PR adds a new validation for numeric ports.
Connected to: #1216

	type Host struct {
		Port uint32 `validate:"port"`
	}

Make sure that you've checked the boxes below before you submit PR:

  • Tests exist or have been written that cover this particular change.

@go-playground/validator-maintainers

@nodivbyzero nodivbyzero requested a review from a team as a code owner July 20, 2024 00:27
@coveralls
Copy link

Coverage Status

coverage: 74.298% (+0.007%) from 74.291%
when pulling 70d0cd0 on nodivbyzero:feat-numeric-port-validation
into a947377 on go-playground:master.

@deankarn deankarn merged commit 48992fa into go-playground:master Nov 16, 2024
KimNorgaard pushed a commit to KimNorgaard/validator that referenced this pull request Feb 25, 2025
## Fixes Or Enhances
This PR adds a new validation for numeric ports.
Connected to: go-playground#1216 

```
	type Host struct {
		Port uint32 `validate:"port"`
	}

```
**Make sure that you've checked the boxes below before you submit PR:**
- [x] Tests exist or have been written that cover this particular
change.

@go-playground/validator-maintainers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants