{"id":49857103,"url":"https://github.com/codebeltnet/carter","last_synced_at":"2026-05-14T20:33:44.067Z","repository":{"id":341470317,"uuid":"1168049458","full_name":"codebeltnet/carter","owner":"codebeltnet","description":"This library provides an opinionated and uniform way of extending Minimal APIs with content negotiation using Carter.","archived":false,"fork":false,"pushed_at":"2026-04-17T23:01:11.000Z","size":83,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-18T00:35:16.321Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codebeltnet.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","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":"2026-02-27T00:45:01.000Z","updated_at":"2026-04-17T22:33:02.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/codebeltnet/carter","commit_stats":null,"previous_names":["codebeltnet/carter"],"tags_count":3,"template":false,"template_full_name":"rbrdux/empty-main-branch","purl":"pkg:github/codebeltnet/carter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebeltnet%2Fcarter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebeltnet%2Fcarter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebeltnet%2Fcarter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebeltnet%2Fcarter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codebeltnet","download_url":"https://codeload.github.com/codebeltnet/carter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codebeltnet%2Fcarter/sbom","scorecard":{"id":1244185,"data":{"date":"2026-03-01T23:20:12Z","repo":{"name":"github.com/codebeltnet/carter","commit":"1dc316aba4ea8622dc84f5109cbe293684d9ea04"},"scorecard":{"version":"v5.0.0","commit":"ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4"},"score":4.4,"checks":[{"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/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#binary-artifacts"}},{"name":"Branch-Protection","score":3,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Warn: 'branch protection settings apply to administrators' is disable on branch 'main'","Warn: 'stale review dismissal' is disable on branch 'main'","Warn: branch 'main' does not require approvers","Warn: codeowners review is required - but no codeowners file found in repo","Warn: 'last push approval' is disable on branch 'main'","Warn: no status checks found to merge onto branch 'main'","Info: PRs are required in order to make changes on branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#branch-protection"}},{"name":"CI-Tests","score":5,"reason":"1 out of 2 merged PRs checked by a CI test -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project runs tests before pull requests are merged.","url":"https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#ci-tests"}},{"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/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#cii-best-practices"}},{"name":"Code-Review","score":0,"reason":"Found 0/3 approved changesets -- score normalized to 0","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/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#code-review"}},{"name":"Contributors","score":0,"reason":"project has 0 contributing companies or organizations -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project has a set of contributors from multiple organizations (e.g., companies).","url":"https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#contributors"}},{"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/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#dangerous-workflow"}},{"name":"Dependency-Update-Tool","score":10,"reason":"update tool detected","details":["Info: detected update tool: Dependabot: .github/dependabot.yml:1"],"documentation":{"short":"Determines if the project uses a dependency update tool.","url":"https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#dependency-update-tool"}},{"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/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#license"}},{"name":"Maintained","score":0,"reason":"project was created in last 90 days. please review its contents carefully","details":["Warn: Repository was created in last 90 days."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#maintained"}},{"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/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#packaging"}},{"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/scorecard.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/codebeltnet/carter/scorecard.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/scorecard.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/codebeltnet/carter/scorecard.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/scorecard.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/codebeltnet/carter/scorecard.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/scorecard.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/codebeltnet/carter/scorecard.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/service-update.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/codebeltnet/carter/service-update.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/service-update.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/codebeltnet/carter/service-update.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/trigger-downstream.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/codebeltnet/carter/trigger-downstream.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/trigger-downstream.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/codebeltnet/carter/trigger-downstream.yml/main?enable=pin","Warn: containerImage not pinned by hash: .docfx/Dockerfile.docfx:3","Warn: containerImage not pinned by hash: .docfx/Dockerfile.docfx:6","Warn: containerImage not pinned by hash: .docfx/Dockerfile.docfx:13","Info:   0 out of   7 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   3 containerImage 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/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":5,"reason":"SAST tool is not run on all commits -- score normalized to 5","details":["Warn: 1 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#sast"}},{"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/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#security-policy"}},{"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/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#signed-releases"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: jobLevel 'security-events' permission set to 'write': .github/workflows/ci-pipeline.yml:103","Warn: jobLevel 'packages' permission set to 'write': .github/workflows/ci-pipeline.yml:116","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/ci-pipeline.yml:115","Info: jobLevel 'contents' permission set to 'read': .github/workflows/trigger-downstream.yml:12","Info: topLevel 'contents' permission set to 'read': .github/workflows/ci-pipeline.yml:17","Info: topLevel permissions set to 'read-all': .github/workflows/scorecard.yml:9","Warn: topLevel 'contents' permission set to 'write': .github/workflows/service-update.yml:22","Warn: no topLevel permission defined: .github/workflows/trigger-downstream.yml:1"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#token-permissions"}},{"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/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2026-03-02T02:19:45.234Z","repository_id":341470317,"created_at":"2026-03-02T02:19:45.234Z","updated_at":"2026-03-02T02:19:45.234Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33042246,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-14T02:00:06.663Z","response_time":57,"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":[],"created_at":"2026-05-14T20:33:42.680Z","updated_at":"2026-05-14T20:33:44.057Z","avatar_url":"https://github.com/codebeltnet.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Extensions for Carter API by Codebelt](.nuget/Codebelt.Extensions.Carter/icon.png)\n\n# Extensions for Carter API by Codebelt\n\n[![Carter CI/CD Pipeline](https://github.com/codebeltnet/carter/actions/workflows/ci-pipeline.yml/badge.svg)](https://github.com/codebeltnet/carter/actions/workflows/ci-pipeline.yml)[![codecov](https://codecov.io/gh/codebeltnet/carter/graph/badge.svg?token=qX3lHGvFS4)](https://codecov.io/gh/codebeltnet/carter) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=codebelt-carter\u0026metric=alert_status)](https://sonarcloud.io/dashboard?id=codebelt-carter) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=codebelt-carter\u0026metric=sqale_rating)](https://sonarcloud.io/dashboard?id=codebelt-carter) [![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=codebelt-carter\u0026metric=reliability_rating)](https://sonarcloud.io/dashboard?id=codebelt-carter) [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=codebelt-carter\u0026metric=security_rating)](https://sonarcloud.io/dashboard?id=codebelt-carter) [![OpenSSF Scorecard](https://api.scorecard.dev/projects/github.com/codebeltnet/carter/badge)](https://scorecard.dev/viewer/?uri=github.com/codebeltnet/carter)\n\nAn open-source project (MIT license) that targets and complements the [Carter](https://github.com/dotnet/Carter) API library. It provides a uniform and convenient way of doing API development for all project types in .NET.\n\nYour versatile Carter companion for modern development with `.NET 10`.\n\nIt is, by heart, free, flexible and built to extend and boost your agile codebelt.\n\n## Concept\n\nThe Extensions for Carter API by Codebelt is designed to bring clarity, structure, and consistency to Carter projects. It provides a focused extension layer for Carter with configurable response negotiation primitives and endpoint metadata helpers for ASP.NET Core minimal APIs.\n\n### Codebelt.Extensions.Carter Negotiator Examples\n\nThese are the standalone response negotiator packages that extend the core `Codebelt.Extensions.Carter` package with specific content negotiation capabilities:\n\n#### Codebelt.Extensions.Carter.AspNetCore.Newtonsoft.Json\n\n```csharp\nusing Carter;\nusing Codebelt.Extensions.AspNetCore.Newtonsoft.Json.Formatters;\nusing Codebelt.Extensions.Carter.AspNetCore.Newtonsoft.Json;\nusing Microsoft.AspNetCore.Builder;\nusing Microsoft.Extensions.DependencyInjection;\n\nvar builder = WebApplication.CreateBuilder(args);\n\nbuilder.Services.AddNewtonsoftJsonFormatterOptions();\nbuilder.Services.AddCarter(c =\u003e c\n    .WithResponseNegotiator\u003cNewtonsoftJsonNegotiator\u003e());\n\nvar app = builder.Build();\napp.MapCarter();\napp.Run();\n```\n\n#### Codebelt.Extensions.Carter.AspNetCore.Text.Json\n\n```csharp\nusing Carter;\nusing Codebelt.Extensions.Carter.AspNetCore.Text.Json;\nusing Cuemon.Extensions.AspNetCore.Text.Json;\nusing Microsoft.AspNetCore.Builder;\nusing Microsoft.Extensions.DependencyInjection;\n\nvar builder = WebApplication.CreateBuilder(args);\n\nbuilder.Services.AddMinimalJsonOptions();\nbuilder.Services.AddCarter(c =\u003e c\n    .WithResponseNegotiator\u003cJsonResponseNegotiator\u003e());\n\nvar app = builder.Build();\napp.MapCarter();\napp.Run();\n```\n\n#### Codebelt.Extensions.Carter.AspNetCore.Text.Yaml\n\n```csharp\nusing Carter;\nusing Codebelt.Extensions.AspNetCore.Text.Yaml.Formatters;\nusing Codebelt.Extensions.Carter.AspNetCore.Text.Yaml;\nusing Microsoft.AspNetCore.Builder;\nusing Microsoft.Extensions.DependencyInjection;\n\nvar builder = WebApplication.CreateBuilder(args);\n\nbuilder.Services.AddMinimalYamlOptions();\nbuilder.Services.AddCarter(c =\u003e c\n    .WithResponseNegotiator\u003cYamlResponseNegotiator\u003e());\n\nvar app = builder.Build();\napp.MapCarter();\napp.Run();\n```\n\n#### Codebelt.Extensions.Carter.AspNetCore.Xml\n\n```csharp\nusing Carter;\nusing Codebelt.Extensions.Carter.AspNetCore.Xml;\nusing Cuemon.Extensions.AspNetCore.Xml;\nusing Microsoft.AspNetCore.Builder;\nusing Microsoft.Extensions.DependencyInjection;\n\nvar builder = WebApplication.CreateBuilder(args);\n\nbuilder.Services.AddMinimalXmlOptions();\nbuilder.Services.AddCarter(c =\u003e c\n    .WithResponseNegotiator\u003cXmlResponseNegotiator\u003e());\n\nvar app = builder.Build();\napp.MapCarter();\napp.Run();\n```\n\n## 📚 Documentation\n\nFull documentation (generated by [DocFx](https://github.com/dotnet/docfx)) located here: https://carter.codebelt.net/\n\n## 📦 Standalone Packages\n\nProvides a focused API for BenchmarkDotNet projects.\n\n|Package|vNext|Stable|Downloads|\n|:--|:-:|:-:|:-:|\n| [Codebelt.Extensions.Carter](https://www.nuget.org/packages/Codebelt.Extensions.Carter/) | ![vNext](https://img.shields.io/nuget/vpre/Codebelt.Extensions.Carter?logo=nuget) | ![Stable](https://img.shields.io/nuget/v/Codebelt.Extensions.Carter?logo=nuget) | ![Downloads](https://img.shields.io/nuget/dt/Codebelt.Extensions.Carter?color=blueviolet\u0026logo=nuget) |\n| [Codebelt.Extensions.Carter.AspNetCore.Newtonsoft.Json](https://www.nuget.org/packages/Codebelt.Extensions.Carter.AspNetCore.Newtonsoft.Json/) | ![vNext](https://img.shields.io/nuget/vpre/Codebelt.Extensions.Carter.AspNetCore.Newtonsoft.Json?logo=nuget) | ![Stable](https://img.shields.io/nuget/v/Codebelt.Extensions.Carter.AspNetCore.Newtonsoft.Json?logo=nuget) | ![Downloads](https://img.shields.io/nuget/dt/Codebelt.Extensions.Carter.AspNetCore.Newtonsoft.Json?color=blueviolet\u0026logo=nuget) |\n| [Codebelt.Extensions.Carter.AspNetCore.Text.Json](https://www.nuget.org/packages/Codebelt.Extensions.Carter.AspNetCore.Text.Json/) | ![vNext](https://img.shields.io/nuget/vpre/Codebelt.Extensions.Carter.AspNetCore.Text.Json?logo=nuget) | ![Stable](https://img.shields.io/nuget/v/Codebelt.Extensions.Carter.AspNetCore.Text.Json?logo=nuget) | ![Downloads](https://img.shields.io/nuget/dt/Codebelt.Extensions.Carter.AspNetCore.Text.Json?color=blueviolet\u0026logo=nuget) |\n| [Codebelt.Extensions.Carter.AspNetCore.Text.Yaml](https://www.nuget.org/packages/Codebelt.Extensions.Carter.AspNetCore.Text.Yaml/) | ![vNext](https://img.shields.io/nuget/vpre/Codebelt.Extensions.Carter.AspNetCore.Text.Yaml?logo=nuget) | ![Stable](https://img.shields.io/nuget/v/Codebelt.Extensions.Carter.AspNetCore.Text.Yaml?logo=nuget) | ![Downloads](https://img.shields.io/nuget/dt/Codebelt.Extensions.Carter.AspNetCore.Text.Yaml?color=blueviolet\u0026logo=nuget) |\n| [Codebelt.Extensions.Carter.AspNetCore.Xml](https://www.nuget.org/packages/Codebelt.Extensions.Carter.AspNetCore.Xml/) | ![vNext](https://img.shields.io/nuget/vpre/Codebelt.Extensions.Carter.AspNetCore.Xml?logo=nuget) | ![Stable](https://img.shields.io/nuget/v/Codebelt.Extensions.Carter.AspNetCore.Xml?logo=nuget) | ![Downloads](https://img.shields.io/nuget/dt/Codebelt.Extensions.Carter.AspNetCore.Xml?color=blueviolet\u0026logo=nuget) |\n\n### Contributing to `Extensions for Carter API by Codebelt`\n[Contributions](.github/CONTRIBUTING.md) are welcome and appreciated.\n\nFeel free to submit issues, feature requests, or pull requests to help improve this library.\n\n### License\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebeltnet%2Fcarter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodebeltnet%2Fcarter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodebeltnet%2Fcarter/lists"}