{"id":37017478,"url":"https://github.com/rustedbones/akka-http-avro","last_synced_at":"2026-01-14T02:00:45.300Z","repository":{"id":38245616,"uuid":"243823822","full_name":"RustedBones/akka-http-avro","owner":"RustedBones","description":" akka-http avro marshalling/unmarshalling for generated java avro specific records","archived":true,"fork":false,"pushed_at":"2023-11-02T15:38:29.000Z","size":78,"stargazers_count":0,"open_issues_count":21,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-11-02T16:58:25.287Z","etag":null,"topics":["akka-http","avro","http","json","scala"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RustedBones.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-02-28T17:59:32.000Z","updated_at":"2023-11-02T15:38:44.000Z","dependencies_parsed_at":"2026-01-14T02:00:32.392Z","dependency_job_id":null,"html_url":"https://github.com/RustedBones/akka-http-avro","commit_stats":null,"previous_names":[],"tags_count":4,"template":null,"template_full_name":null,"purl":"pkg:github/RustedBones/akka-http-avro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RustedBones%2Fakka-http-avro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RustedBones%2Fakka-http-avro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RustedBones%2Fakka-http-avro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RustedBones%2Fakka-http-avro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RustedBones","download_url":"https://codeload.github.com/RustedBones/akka-http-avro/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RustedBones%2Fakka-http-avro/sbom","scorecard":{"id":123327,"data":{"date":"2025-08-11","repo":{"name":"github.com/RustedBones/akka-http-avro","commit":"bb9f9a174389238d88fb5a1320e5128558aab420"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.6,"checks":[{"name":"Code-Review","score":8,"reason":"Found 22/27 approved changesets -- score normalized to 8","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"project is archived","details":["Warn: Repository is archived."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/clean.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:30: update your workflow using https://app.stepsecurity.io/secureworkflow/RustedBones/akka-http-avro/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/RustedBones/akka-http-avro/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/RustedBones/akka-http-avro/ci.yml/main?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T03:03:13.381Z","repository_id":38245616,"created_at":"2025-08-16T03:03:13.381Z","updated_at":"2025-08-16T03:03:13.381Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408709,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["akka-http","avro","http","json","scala"],"created_at":"2026-01-14T02:00:25.907Z","updated_at":"2026-01-14T02:00:45.140Z","avatar_url":"https://github.com/RustedBones.png","language":"Scala","readme":"# akka-http-avro\n\n[![Continuous Integration](https://github.com/RustedBones/akka-http-avro/actions/workflows/ci.yml/badge.svg)](https://github.com/RustedBones/akka-http-avro/actions/workflows/ci.yml)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/fr.davit/akka-http-avro_2.13/badge.svg)](https://maven-badges.herokuapp.com/maven-central/fr.davit/akka-http-avro_2.13)\n[![Software License](https://img.shields.io/badge/license-Apache%202-brightgreen.svg?style=flat)](LICENSE)\n[![Scala Steward badge](https://img.shields.io/badge/Scala_Steward-helping-blue.svg?style=flat\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAQCAMAAAARSr4IAAAAVFBMVEUAAACHjojlOy5NWlrKzcYRKjGFjIbp293YycuLa3pYY2LSqql4f3pCUFTgSjNodYRmcXUsPD/NTTbjRS+2jomhgnzNc223cGvZS0HaSD0XLjbaSjElhIr+AAAAAXRSTlMAQObYZgAAAHlJREFUCNdNyosOwyAIhWHAQS1Vt7a77/3fcxxdmv0xwmckutAR1nkm4ggbyEcg/wWmlGLDAA3oL50xi6fk5ffZ3E2E3QfZDCcCN2YtbEWZt+Drc6u6rlqv7Uk0LdKqqr5rk2UCRXOk0vmQKGfc94nOJyQjouF9H/wCc9gECEYfONoAAAAASUVORK5CYII=)](https://scala-steward.org)\n\n\nakka-http avro  marshalling/unmarshalling for generated java avro specific records\n\nAfter the akka [licencing change](https://www.lightbend.com/blog/why-we-are-changing-the-license-for-akka),\nno further development is expected on `akka-http-avro`.\nIf you're migrating to pekko-http, see [pekko-http-avro](https://github.com/RustedBones/pekko-http-avro).\n\n\n## Versions\n\n| Version | Release date | Akka Http version | Avro version | Scala versions                 |\n|---------|--------------|-------------------|--------------|--------------------------------|\n| `0.1.3` | 2022-04-24   | `10.2.9`          | `1.11.0`     | `2.13.8`, `2.12.15`            |\n| `0.1.2` | 2020-09-18   | `10.2.0`          | `1.10.0`     | `2.13.3`, `2.12.12`            | \n| `0.1.1` | 2020-07-03   | `10.1.12`         | `1.10.0`     | `2.13.3`, `2.12.11`, `2.11.12` | \n| `0.1.0` | 2020-03-01   | `10.1.11`         | `1.9.2`      | `2.13.1`, `2.12.10`, `2.11.12` | \n\nThe complete list can be found in the [CHANGELOG](CHANGELOG.md) file.\n\n## Getting akka-http-avro\n\nLibraries are published to Maven Central. Add to your `build.sbt`:\n\n```scala\nlibraryDependencies += \"fr.davit\" %% \"akka-http-avro\" % \u003cversion\u003e\n```\n\n## Quick start\n\nFor the examples, we are using the following avro domain model \n\n```json\n{\n  \"namespace\": \"com.example\",\n  \"type\": \"record\",\n  \"name\": \"Item\",\n  \"fields\": [\n    {\n      \"name\": \"name\",\n      \"type\": \"string\"\n    },\n    {\n      \"name\": \"id\",\n      \"type\": \"long\"\n    }\n  ]\n}\n```\nand\n```json\n{\n  \"namespace\": \"com.example\",\n  \"type\": \"record\",\n  \"name\": \"Order\",\n  \"fields\": [\n    {\n      \"name\": \"items\",\n      \"type\": {\n        \"type\" : \"array\",\n        \"items\": \"com.example.Item\"\n      }\n    }\n  ]\n}\n```\n\nMarshalling/Unmarshalling of the generated classes depends on the `Accept`/`Content-Type` header sent by the client:\n- `Content-Type: application/json`: json\n- `Content-Type: avro/binary`: binary\n\n-No `Accept` header or matching several (eg `Accept: application/*`) will take the 1st matching type from the above list.\n\n### Avro\n\nThe implicit marshallers and unmarshallers for your generated avro classes are defined in \n`AvroSupport`. Specific (un)marshallers can be imported from `AvroBinarySupport`, `AvroJsonSupport`. \nYou simply need to have them in scope.\n\n```scala\nimport akka.http.scaladsl.server.Directives._\nimport fr.davit.akka.http.scaladsl.marshallers.avro.AvroSupport._\n\n\nobject MyAvroService {\n\n  val route =\n    get {\n      pathSingleSlash {\n        complete(Item.newBuilder().setName(\"thing\").setId(42).build())\n      }\n    } ~ post {\n      entity(as[Order]) { order =\u003e\n        val itemsCount = order.getItems.size\n        val itemNames = order.getItems.asScala.map(_.getName).mkString(\", \")\n        complete(s\"Ordered $itemsCount items: $itemNames\")\n      }\n    }\n}\n```\n\n## Limitation\n\nEntity streaming (http chunked transfer) is at the moment not supported by the library.\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frustedbones%2Fakka-http-avro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frustedbones%2Fakka-http-avro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frustedbones%2Fakka-http-avro/lists"}