We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
import json from dataclasses_avroschema import ModelGenerator schema = """ { "namespace": "Foo.Boo", "name": "Zoo", "type": "record", "fields": [ { "name": "value_a", "type": [ "null", {"type": "string"} ] }, { "name": "value_b", "type": [ "null", "string" ] } ] } """ mg = ModelGenerator() print(mg.render(schema=json.loads(schema))) # from dataclasses_avroschema import AvroModel # import dataclasses # import typing # # # @dataclasses.dataclass # class Zoo(AvroModel): # value_a: typing.Optional[: str] <------------------------ # value_b: typing.Optional[str] # # class Meta: # namespace = "Foo.Boo"
The text was updated successfully, but these errors were encountered:
fix: proper schema generation when primitive types are defined types. C…
ec76b49
…loses #330
4c09e20
…loses #330 (#332) Co-authored-by: Marcos Schroh <marcos.schroh@kpn.com>
Successfully merging a pull request may close this issue.
The text was updated successfully, but these errors were encountered: