fix function based collections without params#96
Conversation
|
@vincentsarago if you'd like a test for this let me know and i can do that as well :) |
|
Thanks @jackharrhy
Yes please 🙏 |
|
I might be missing something, but I don't see how this is doing anything differently than |
|
@bitner because I guess Maybe this tell us there is a bug and that parameters should always default to |
This is what You can see that |
|
I have updated the code and added tests. @bitner I think we don't need to change the |
|
Thanks for taking this over and getting it sorted! |
What I am changing
How I did it
parameters: Noneproperly, always default to a list to make pydantic happyHow you can test it
Create the following function
Currently
Launching tipg will fail when it goes to create an instance of Collection based off of this function due to a validation error
After this PR
Launching tipg will work as expected without any validation errors