Closed harikrishnan-dev closed 3 weeks ago
Thanks for reporting the bug @harikrishnan-dev . I will try to fix it asap.
@marcosschroh any update on the above issue?
Tomorrow I will start working on it
With the new release the schema will be:
{"type": "record", "name": "Animal", "fields": [{"name": "tigerAnimal", "type": ["null", {"type": "record", "name": "Cat", "fields": [{"name": "name", "type": "string"}, {"name": "createdBy", "type": "string"}]}], "default": null}, {"name": "whaleFish", "type": ["null", {"type": "record", "name": "Fish", "fields": [{"name": "name", "type": "string"}, {"name": "finsCount", "type": "long"}]}], "default": null}, {"name": "lionAnimal", "type": ["null", "Cat"], "default": null}]}
Describe the bug A clear and concise description of what the bug is.
I am trying to use the.avro_schema(case_type=case.CAMELCASE) to generate my schema in camelcase. But the function was not able to convert nested structures into Camel case.
To Reproduce
Steps to reproduce the behavior
Expected behavior
For the above code the result produced was
{"type": "record", "name": "Animal", "fields": [{"name": "tigerAnimal", "type": ["null", {"type": "record", "name": "Cat", "fields": [{"name": "name", "type": "string"}, {"name": "created_by", "type": "string"}]}], "default": null}, {"name": "whaleFish", "type": ["null", {"type": "record", "name": "Fish", "fields": [{"name": "name", "type": "string"}, {"name": "fins_count", "type": "long"}]}], "default": null}, {"name": "lionAnimal", "type": ["null", "Cat"], "default": null}]}
A clear and concise description of what you expected to happen.
The actual result should be where the fields created_by and fins_count should also be converted into
createdBy
andfinsCount
.