-
Notifications
You must be signed in to change notification settings - Fork 35
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
model_rebuild
calls for top level fragments
#258
Conversation
Thanks for this fix! I updated to |
@bombsimon I'll be taking over this (and other) PRs from Matt who left the company. I'll need to catch up with the code and internals first, but this PR is a priority for me. |
@rafalp Oh, sad to hear you're losing a great colleague but congrats to Matt I hope! 🎈 And luckily for us using this the codebase is still in good hands with you! Understandable that this will take some time, let me know if I can do anything to help with the process! And FYI I based my branch with issues on this branch and that works just fine so this solves the problem for me. |
Hello @bombsimon. If you want to pick up this PR to add tests to it, please feel free to do so. Apologies for taking this long to return to this. |
@rafalp I'll try to pick this up next week and I'll let you know if I won't make it so you're not waiting for me! Don't mention it, all your effort is greatly apprecaited! |
I don't have access to push to this branch so I crated #267 and rebased on I opted to import a model from Since there's no way for me to turn of the calls to |
Tests like this are useful, they codify assumptions/requirements on the dependency's behavior in tests suite. |
Superseded by #267 |
This pr restores
model_rebuild
calls for top-level fragment models. When a fragment is parsed to many models only 1 (with the same name as the fragment) will getmodel_rebuild
call.Implementation is complete, but I'm marking this as a draft because I think it's a good opportunity to add a test that checks if generated models can be imported and used with
.model_validate(...)
. Maybe as a part of generated_client or new test that imports models from expected_clients?resolves #253