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
fix: setSchemaController not inheriting Schemas from root parent #3401
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Co-authored-by: Manuel Spigolon <behemoth89@gmail.com>
Co-authored-by: Manuel Spigolon <behemoth89@gmail.com>
Hi @Eomm, I adjusted the tests as you suggested in the following commit 4dd513b Thanks to that, I notice that thanks to the change, the I added the function Please let me know what you think about this approach, not so sure if is the right approach as it might be better to even decouple it a little and have one function for the Note:
|
Done, please feel free to have a look when you have time 🙂 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor remark. Overall LGTM.
Good catch on this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GREAT test cases 👏🏽
Almost done!
Co-authored-by: Manuel Spigolon <behemoth89@gmail.com>
Co-authored-by: Manuel Spigolon <behemoth89@gmail.com>
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
As stated in #3121, during the development of the plugin I noticed that when setting up a custom
SchemaController
on the second level of encapsulation (root -> instance), the custom Validator is not correctly inheriting the schemas defined on the root layer of encapsulation. Causing the following error:Failed building the validation schema for POST: /, due to error can't resolve reference some# from id #
Full Reproduction in the test case added.
Checklist
npm run test
andnpm run benchmark
and the Code of conduct