Closed frantuma closed 2 years ago
Right, this looks as another corner-case and follow up of #812.
First PR fixing this has landed: https://github.com/swagger-api/apidom/pull/941
The above PRs map and fix all the possible cases of empty nodes as documented in YAML 1.2.2 specification.
I'll be building empty node replacement on top of these changes.
Similar to https://github.com/swagger-api/apidom/issues/883, when an array item is empty in YAML (see below), such item is not parsed as an element
e.g.
is parsed into:
or
is parsed into:
We would need to have these items parsed as the expected array type, or if not possible as string elements, similarly to what done in https://github.com/swagger-api/apidom/issues/883 for member values.