-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
Default values missing in query #287
Comments
Thanks for the issue @xeoneux. I created 2 new tests for Here are some links tests:
spec: Please have a look at the tests. As I noted they work. I could use some help reproducing your case. If you can create a test that demonstrates the issue, I'll certainly take a look. Thanks. Note, you can click the Gitpod link at the top right of this page (or the Gitpod link on the README) to get a full dev environment setup for this project. Once it completes, you can run the two tests to poke around (see CONTRIBUTING.MD for details on running tests). |
Hi @cdimascio, I created a repo for the case here: https://github.com/xeoneux/express-openapi-validator-default-query-issue I'm using $ref for schema to query object and I can see your test as well for that |
@xeoneux Thanks for the sample. I'm working on a fix. Should have something soon |
deepObject default value support #287
@xeoneux please give version |
Sure, will you create a release on npm please? |
Yes. Its already available. Let me know how it goes |
Works perfectly fine! Thanks @cdimascio 😄 |
First of all, thanks a lot for this package @cdimascio
I couldn't find any other lib that handles OpenAPI v3 well, is well maintained and has a good amount of tests 😄
So here's my issue:
For example, I'm using this schema:
Along with this query item:
Then, inside the route, the
req.query.sort
is an empty object instead of the default values,{ sort: {field: 'id', order: 'ASC'} }
Is the not the desired behaviour or is it because of the
deepObject
style?The text was updated successfully, but these errors were encountered: