-
Notifications
You must be signed in to change notification settings - Fork 62
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(moduleExec): pass correct object to validation #27
Conversation
Thanks for another PR! Umm, on looking at the issue in #27 I think I'd prefer to go the simpler route of just defaulting to an empty object, rather than validating the default options (that never change) on every call. So instead of the object: queryOpts.overrides, to object: queryOpts.overrides ?? {}, I'm going to add a quick test for this to make sure it works just as well. Thanks again :) |
@gadicc Ah, I see your viewpoint. I thought it made sense to validate "ALL" query parameters, since theoretically I saw that you solved this in another way here but it's better to account for this in I'll update the PR with your suggested change, but if you have time please respond to my first question. |
Awesome, thanks, @pudgereyem! 🙌 And yes adding the broken test first is a great habit! I love it. I'll add a note about it on the contributing doc too.
I think you mean the
You're absolutely right about this, thanks for cleaning up my code in |
Yes, I mean |
# [1.7.0](v1.6.0...v1.7.0) (2021-02-10) ### Bug Fixes * **index:** uhhhh s/_options/_opts/ like it's called everywhere else ([4492993](4492993)) * **moduleExec:** pass correct object to validation ([#27](#27)) ([8b0f9c7](8b0f9c7)) * **modules:** change overloading order specificy (fixes [#21](#21)) ([1806e61](1806e61)) * **quote:** extend marketState property ([0c36a60](0c36a60)) * **quote:** interface fixes, 10am UTC tests ([#35](#35)) ([1c256c7](1c256c7)) ### Features * new module recommendationsBySymbol ([#28](#28)) ([b467acb](b467acb))
🎉 This PR is included in version 1.7.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This PR fixes #24
Changes
moduleExec
: Change so that we always pass an object tovalidateAndCoerceTypes
quote
: no need to default to empty object for overrides since that is done later