Closed
Description
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.