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

** (UndefinedFunctionError) function nil.operationId/0 is undefined #447

Merged
merged 9 commits into from
Jul 30, 2022

Conversation

rolandtritsch
Copy link
Contributor

Hi All. Quick bug-fix ...

If you have a controller and one of the operations is annotated with operation :some_endpoint, false and you are using cast_and_validate() you will get an ** (UndefinedFunctionError) function nil.operationId/0 is undefined error at runtime.

This PR adds a test to show/reproduce the problem and suggests a fix.

Feedback welcome.

@rolandtritsch
Copy link
Contributor Author

@zorbash Uuupppsss ... totally missed the comments here. Working on it now. Fill address asap.

test/plug/cast_test.exs Outdated Show resolved Hide resolved
test/plug/cast_test.exs Outdated Show resolved Hide resolved
@rolandtritsch
Copy link
Contributor Author

Hi @zorbash. Do you want to merge this PR or do you want me to close it? - RT

@zorbash zorbash merged commit 7ae0a52 into open-api-spex:master Jul 30, 2022
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