dataclasses-avroschema
dataclasses-avroschema copied to clipboard
Generate avro schemas from python classes. Code generation from avro schemas. Serialize/Deserialize python instances with avro schemas
**Describe the bug** Automatic name changes to singular nouns leads to misspelled type names, such as an enum named `marital_status` is renamed to `marital_statu`. **To Reproduce** The following code: ```python...
The `standardize_custom_type` function currently translates the elements of dicts and enums but not lists (or tuples). This means that if you try to serialise a class containing a list of...
**Describe the bug** Currently, if a type is repeated, its definition _must_ have a namespace defined or a `NameSpaceRequiredException` is raised. However, a namespace is not a requirement in the...
**Is your feature request related to a problem? Please describe.** `NamedTuple` is currently unsupported. **Describe the solution you'd like** `NameTuple` -> `record` **Describe alternatives you've considered** A clear and concise...
Hi, Microsecond-precision timestamps are covered in the spec at [Timestamp (microsecond precision)](https://avro.apache.org/docs/current/spec.html#Time+%28microsecond+precision%29). I was looking at the way the library handles them, and it seems they're rounded to millis. I...
**Describe the bug** doing a `from __future__ import annotations` in a file that defines an AvroModel makes it raise an exception when you call `avro_schema()` **To Reproduce** ``` from __future__...
**Describe the bug** I get the error when using topic.send() when using avro_serializer ``` httpcore.ConnectError: [Errno 8] nodename nor servname provided, or not known ``` This error confuses us as...
**Describe the bug** When using two different schemas with the same field name the union field type does not work correctly for `AvroBaseModel`. **To Reproduce** The following script ```python import...
## Proposal Let user specify location of the schemas in `pyproject.toml` (maybe add support for another file like `.avro-schemas.toml`) ```toml [tool.dataclasses-avroschema] output_folder = "schemas" [[tool.dataclasses-avroschema.schemas]] source = "https://myschemas.org/example/1.1.1/hello.avsc" [[tool.dataclasses-avroschema.schemas]] source...