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
Describe the bug
I have avro schema which contains field name like yield and fake. The generated model contains yield and fake as a field. having fake field in the model create issue when using fake method and yield causes issue because its a reserved keyword in python.
fake field resulted in
AssertionError: Invalid default type <class 'method'> for field "fake". Default should be <class 'str'>
Describe the bug
I have avro schema which contains field name like yield and fake. The generated model contains yield and fake as a field. having fake field in the model create issue when using fake method and yield causes issue because its a reserved keyword in python.
fake field resulted in
AssertionError: Invalid default type <class 'method'> for field "fake". Default should be <class 'str'>
To Reproduce
Expected behavior
It should generate valid model perhaps use alias field
The text was updated successfully, but these errors were encountered: