validator icon indicating copy to clipboard operation
validator copied to clipboard

feat: add validator for numeric ports

Open nodivbyzero opened this issue 1 year ago • 1 comments

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:

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

@go-playground/validator-maintainers

nodivbyzero avatar Jul 20 '24 00:07 nodivbyzero

Coverage Status

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

coveralls avatar Jul 20 '24 00:07 coveralls