You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The allOf property is not resolved correctly and doesn't act as a replacement for the type property.
Validating a response with a spec below (only the relevant parts) results in the error in the issue title.
The Components.v1.yaml looks correct. The path / that's being tested is not defined in it though or am I missing something.
The schemaMySchema seems to not be used anywhere. Try referencing the MySchema in a response, that tripped it for me.
@xbojch This should be fixed in v1.0.1. There is an issue with the parsing of component references, so I've got a workaround until the underlying package is fixed.
Activity
xbojch commentedon Apr 9, 2021
I ended up using https://github.com/osteel/openapi-httpfoundation-testing with https://github.com/DarkaOnLine/L5-Swagger as described here.
hotmeteor commentedon Apr 21, 2021
@xbojch Can you provide more information on what you're trying to do? I added a test for this and didn't hit an issue, but I'm sure I'm not replicating it properly: https://github.com/hotmeteor/spectator/blob/v1.0.0/tests/ResponseValidatorTest.php#L277
xbojch commentedon Apr 21, 2021
The
Components.v1.yamllooks correct. The path/that's being tested is not defined in it though or am I missing something.The schema
MySchemaseems to not be used anywhere. Try referencing theMySchemain a response, that tripped it for me.Fix JSON parsing for component references
hotmeteor commentedon Apr 21, 2021
@xbojch This should be fixed in v1.0.1. There is an issue with the parsing of component references, so I've got a workaround until the underlying package is fixed.
xbojch commentedon Apr 21, 2021
Thank you very much @hotmeteor. I'll give it another try, because I just love how much shorter and more understandable it makes the tests.