Objects with empty properties are being serialized as [] in the resulting openapi.yaml, which is invalid OpenAPI. This was already being handled in a couple places, just missed a few. I also replaced the $EMPTY class prop with a function that also performs the empty check.
Luckily, TheSideProjectAPI actually has an example of this bug! I tested with that repo and the fix seemed to work.
Objects with empty properties are being serialized as
[]
in the resultingopenapi.yaml
, which is invalid OpenAPI. This was already being handled in a couple places, just missed a few. I also replaced the$EMPTY
class prop with a function that also performs the empty check.Luckily,
TheSideProjectAPI
actually has an example of this bug! I tested with that repo and the fix seemed to work.First time working in php, pointers welcome!