{"repo":"beam-community/avro_ex","free":true,"listed":false,"github":"https://github.com/beam-community/avro_ex","clone":"git clone https://github.com/beam-community/avro_ex.git","description":"An Avro Library that emphasizes testability and ease of use.","language":"Elixir","stars":69,"topics":["avro","schema","decoding","encoding","kafka","avro-schema","avro-kafka"],"license":"MIT","category":"data-pipelines","readme_excerpt":"AvroEx An Avro encoding/decoding library written in pure Elixir. Documentation The docs can be found on hex.pm Installation Usage Schema Decoding Avro uses schemas to define the shape and contract for data. The schemas that your application uses may be defined locally, or may come from a Schema Registry. In either case, the first step is to decode a schema defined as JSON or Elixir terms into a t:AvroEx.Schema.t/0 AvroEx will automatically detect Elixir terms or JSON, so you can decode JSON schemas directly Strict Schema Decoding When writing an Avro schema, it is helpful to get feedback on unrecognized fields. For this purpose, it is recommended to use the :strict option to provide additional checks. Note that it is not recommended to use this option in production when pulling externally defined schemas, as they may have published a schema with looser validations. Encoding When publishing Avro data, it first must be encoded using the schema. Decoding When receiving Avro data, decode it using the schema Schema Encoding AvroEx also supports encoding schemas back to JSON. This may be needed when registering schemas or serializing them to disk. Additionally, schemas can be encoded to Parsing Canonical Form using the :canonical option. Testing For testing convenience, AvroEx.encodable?/2 is exported to check if data can be encoded against the given schema. Note that in production scenarios, it is not recommended to use this function.","default_branch":null,"files":null,"tree":[],"storefront":"/r/beam-community","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/beam-community/avro_ex/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}