When using $schema = Reader::readFromYaml($content) followed by Writer::writeToYaml($schema) any instances of security: [] are incorrectly converted to security: { }. This is invalid (it should remain as an empty array) and causes any tooling that reads the newly written spec to fall over.
When using
$schema = Reader::readFromYaml($content)followed byWriter::writeToYaml($schema)any instances ofsecurity: []are incorrectly converted tosecurity: { }. This is invalid (it should remain as an empty array) and causes any tooling that reads the newly written spec to fall over.