Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.11.0
-
None
Description
Changed string in the function: make_avsc_object (from the file "schema.py"):
scale = 0 if json_data.get("scale") is None else json_data.get("scale") -> scale = json_data.get("scale", 0)
By Python documentation:
get(self, key, default=None, /)
Return the value for key if key is in the dictionary, else default.
It is more effective and readable than previous version.
Attachments
Issue Links
- links to