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
and that is it!! Each python field is related with a avro type. You can find the field relationships here:
85
+
and that is it!! Each python field is related with a avro type. You can find the field relationships (here)[https://marcosschroh.github.io/dataclasses-avroschema/fields_specification/]:
86
+
87
+
### Enum, Array and Map fields
88
+
89
+
```python
90
+
classUserAdvance:
91
+
name: str
92
+
age: int
93
+
pets: typing.List[str] = dataclasses.field(default_factory=lambda: ['dog', 'cat']) # array field with default
94
+
accounts: typing.Dict[str, int] = dataclasses.field(default_factory=lambda: {"key": 1}) # map field with default
95
+
has_car: bool=False
96
+
favorite_colors: typing.Tuple[str] = ("BLUE", "YELLOW", "GREEN") # enum field
0 commit comments