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
There's a point in the code gen method where we should go from Option<DataModel> to DataModel. This error should happen there, and all methods downstream of that point (including this one) should operate on DataModel instead of Option<DataModel>.
If constaints cannot be empty, it would be good to note that in a comment. If it can be empty, then code_gen_context can contain a None, which is possibly a problem?
We should be able to get a non-Option data type from this point on, I think.
Do we still need the CodeGenContext now that it's just this field? If you have a future use for it in mind, cool. Otherwise, the Option<DataModel> could just be a local variable in the code gen method.
The text was updated successfully, but these errors were encountered:
Related conversations:
The text was updated successfully, but these errors were encountered: