You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was tinkering around and noticed that we have this beauty of a script that makes sure that generating Python models from YAML component schema runs in Dagger of all things, because we want the OS-level dependency pinning for datamodel-codegen.
This is insane to me. We are using crazy shenanigans to avoid updating to a modern library.
We should either update to Pydantic V2 and have a normal Python or a Bash script to generate the models, or we should switch to @dataclass entirely (if we are not actively using validations).
I think @tolik0's work around refactoring the model to component factory is relevant here — it could be that this is predecessor, or vice versa.
The text was updated successfully, but these errors were encountered:
I was tinkering around and noticed that we have this beauty of a script that makes sure that generating Python models from YAML component schema runs in Dagger of all things, because we want the OS-level dependency pinning for datamodel-codegen.
This is insane to me. We are using crazy shenanigans to avoid updating to a modern library.
We should either update to Pydantic V2 and have a normal Python or a Bash script to generate the models, or we should switch to
@dataclass
entirely (if we are not actively using validations).I think @tolik0's work around refactoring the model to component factory is relevant here — it could be that this is predecessor, or vice versa.
The text was updated successfully, but these errors were encountered: