-
-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ErrorException : Undefined property: stdClass::$type #38
Comments
I ended up using https://github.com/osteel/openapi-httpfoundation-testing with https://github.com/DarkaOnLine/L5-Swagger as described here. |
@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 |
The |
@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. |
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. |
The
allOf
property is not resolved correctly and doesn't act as a replacement for thetype
property.Validating a response with a spec below (only the relevant parts) results in the error in the issue title.
Is this an issue in Spectator or related to cebe/php-openapi#31?
Workaround
Replacing the
allOf
with atype
property resolves the error.The text was updated successfully, but these errors were encountered: