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

Optional fields with null values should be counted as valid #11

Open
xrodo912 opened this issue Jul 31, 2017 · 2 comments
Open

Optional fields with null values should be counted as valid #11

xrodo912 opened this issue Jul 31, 2017 · 2 comments

Comments

@xrodo912
Copy link

Expected behaviour

Optional fields with a null value should be counted as valid if the structure matches.

Actual behaviour

Optional fields with a null value are counted as invalid.

Verify a yaml with this field/value:
middle name: null
Against this structure:
'middle name?': 'string'.

Versions and environment

  • Operating system: Windows 10
  • Node.js: 8.2.1
  • npm: 5.3
  • yaml-validator: 1.0.0

Thank you and have some 🍇.

@paazmaya
Copy link
Owner

paazmaya commented Aug 2, 2017

Thank you for the issue, by following the template.

I will try to create a test case for this first...

@paazmaya
Copy link
Owner

@xrodo912 In case you have already some example files that could be used for testing, mind creating a PR?

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

No branches or pull requests

2 participants