Description
The avro.protocol.Protocol, avro.protocol.Message, and various classes in avro.schema all support a to_json method which renders the data in Python generics (easily renderable to json).
These methods all take a required names argument (of type avro.schema.Names) which stores state representing what types have already been rendered.
For debugging – and for other uses of the schema – it is helpful if the names argument is optional. When it is not provided, each method should construct an empty schema.Names object internally. to_json thus can be invoked without argument to get the relevant rendering of the current schema in isolation.
Patch to be attached.