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

Fatal error on generating. #41

Closed
jraubswitch opened this issue Oct 12, 2018 · 3 comments
Closed

Fatal error on generating. #41

jraubswitch opened this issue Oct 12, 2018 · 3 comments

Comments

@jraubswitch
Copy link

I'm getting this error:

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

https://github.com/janephp/open-api/blob/v4.0.1/Generator/Parameter/BodyParameterGenerator.php#L94

I changed the line to

return [$this->convertParameterType($resolvedSchema->getType(), $resolvedSchema->getFormat()), null];

and it's working as expected now.

Am I correct in this is what is intended?

@joelwurtz
Copy link
Member

Can you give me the schema that was doing that ? Would be nice to add it as a test

@jraubswitch
Copy link
Author

It's 5.2M swagger from a kubernetes master.

@joelwurtz
Copy link
Member

Oh yes, it was fixed but not released see here #18

will do a release soon

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

No branches or pull requests

2 participants