Skip to content
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

Invalid schema reference results in fatal error #18

Merged
merged 1 commit into from
Mar 28, 2018
Merged

Invalid schema reference results in fatal error #18

merged 1 commit into from
Mar 28, 2018

Conversation

yoshz
Copy link
Contributor

@yoshz yoshz commented Mar 6, 2018

My generated swagger.json has a reference to a none object which results in a fatal error:

PHP Fatal error:  Uncaught Error: Call to undefined method Jane\JsonSchemaRuntime\Reference::getType() in /var/www/vendor/jane-php/open-api/Generator/Parameter/BodyParameterGenerator.php:94

This PR solved my use case by using the resolved schema to get type and format.

@joelwurtz joelwurtz merged commit 7756f21 into janephp:master Mar 28, 2018
@joelwurtz
Copy link
Member

Thanks

@yoshz yoshz deleted the invalid-schema branch December 21, 2021 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants