Skip to content

Add IP Address Validation#607

Closed
DavidTPate wants to merge 1 commit intohapijs:6.1.0from
DavidTPate:ip-validation
Closed

Add IP Address Validation#607
DavidTPate wants to merge 1 commit intohapijs:6.1.0from
DavidTPate:ip-validation

Conversation

@DavidTPate
Copy link
Contributor

This PR adds the ability to do IP address validation for IPv4, IPv6, and IPvFuture addresses along with a configurable part for if a CIDR is optional/required/forbidden for the validation. It includes appropriate tests and documentation.

It takes care of the original PR #458

@Marsup Marsup added the feature New functionality or improvement label Mar 19, 2015
@Marsup Marsup added this to the 6.1.0 milestone Mar 19, 2015
@Marsup Marsup self-assigned this Mar 19, 2015
@Marsup
Copy link
Collaborator

Marsup commented Mar 19, 2015

I'll take care of that this weekend, sorry for the delay.

@DavidTPate
Copy link
Contributor Author

Sounds good, thanks @Marsup !

@Marsup
Copy link
Collaborator

Marsup commented Mar 26, 2015

This can be vastly improved. This is not the kind of thing that can wholly fit into string anymore. Can you create a string subfolder containing 3 files : code that's specific for ip, uri, and what's common between them ? I don't feel confident about the maintainability of the code as it is.

@DavidTPate
Copy link
Contributor Author

@Marsup Sure thing. That was one of my concerns as well, this logic isn't short and sweet like most of the other pieces of validation.

@DavidTPate
Copy link
Contributor Author

Closing this as it is being covered in #619

@DavidTPate DavidTPate closed this Mar 27, 2015
@Marsup Marsup added non issue Issue is not a problem or requires changes and removed feature New functionality or improvement labels Mar 27, 2015
@Marsup Marsup removed this from the 6.1.0 milestone Mar 27, 2015
@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

non issue Issue is not a problem or requires changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants