yaml-validator icon indicating copy to clipboard operation
yaml-validator copied to clipboard

Optional fields with null values should be counted as valid

Open xrodo912 opened this issue 7 years ago • 2 comments

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 :grapes:.

xrodo912 avatar Jul 31 '17 16:07 xrodo912

Thank you for the issue, by following the template.

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

paazmaya avatar Aug 02 '17 20:08 paazmaya

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

paazmaya avatar Aug 10 '17 07:08 paazmaya