Closed hrs-allbsd closed 1 year ago
No, this is not expected behavior. There's no difference between a lite app and full app, except maybe how it locate files in your directory structure.
I also use "in:body" many places and that case also has a bunch of tests, so I doubt there's a bug there...
https://github.com/jhthorsen/mojolicious-plugin-openapi/blob/main/t/v2-body.t#L33
Here are some more resources which might help:
I'm going to close this issue now. Please join #perl-openapi on https://libera.chat/ or drop me an email i you want me to look into this further.
I am unsure if this is just my misunderstanding or an actual bug, but I got an error when I tried to use POST method and "in: body".
The details are as follows. I tried an example found at https://github.com/jonasbn/perl-mojolicious-plugin-openapi-tutorial-parameters/. I changed getUserByParameter to use POST by using the following spec. Only the method and the parameters were changed:
After that, I tried
./script/parameters openapi /api
and the following error occurred:When I tried
./script/parameters openapi ./openapi.json
to directly read the spec, no error occurred:I have no idea why
openapi /api
caused the error. After some more investigation, I noticed the following:Is this an expected behavior? This error seems not specific to this example. I confirmed that it was reproducible by creating a smaller app with "in: body" in the parameters.
The version numbers are as follows: