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
This commit cleans up a few bugs in the _schema_loads function:
We use primitive types retrieved from the Confluent Registry and encountered an
issue where _schema_loads would cause json deserialization errors by double quoting
valid primitive declarations. Previous tests included incorrectly specified primitive
declarations, according to the Avro spec primitive declarations are valid JSON documents,
but they had been specified as strings of their type name with no quoting. I fixed the
tests as well as the issue in _schema_loads
Somewhat separately, there was also an issue with Avro union types. _schema_loads was
incorrectly causing json serialization errors for unions because it included them
on accident with its special-casing of primitive declarations. I added a check for
json arrays to exclude them from the special casing. I also had to add a check
later to ensure the _schema_name property was special-cased to None for unions.
This should have no impact on names in the registry because _schema_name isn't
used at all for the recommended subject name strategy with unions.
0 commit comments