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

INSPECT-5605 add float nan validator #96

Closed
wants to merge 5 commits into from

Conversation

laurence-smith
Copy link
Contributor

Add a float/double validator to optionally prevent NaN values. Default if unspecified is to allow NaN's.

Example Usage:

  double nan_allowed = 1 [(validator.float) = {
    allow_nan: true
  }];
  double nan_disallowed = 2 [(validator.float) = {
    allow_nan: false,
    optional: true
  }];

@laurence-smith laurence-smith requested a review from a team as a code owner July 5, 2022 06:22
@laurence-smith laurence-smith requested review from parmaviolet and kasluthra-sec and removed request for a team July 5, 2022 06:22
@laurence-smith laurence-smith marked this pull request as draft July 7, 2022 23:23
@laurence-smith laurence-smith deleted the INSPECT-5605-add-float-nan-validator branch July 28, 2022 01:23
@laurence-smith laurence-smith restored the INSPECT-5605-add-float-nan-validator branch July 28, 2022 01:45
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.

None yet

2 participants