{"id":19351703,"url":"https://github.com/operable/conduit","last_synced_at":"2025-08-03T10:15:48.426Z","repository":{"id":78638191,"uuid":"64135067","full_name":"operable/conduit","owner":"operable","description":"JSON encoder/decoder with strong typing and validation","archived":false,"fork":false,"pushed_at":"2017-09-25T13:44:07.000Z","size":35,"stargazers_count":1,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T10:36:38.401Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/operable.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2016-07-25T13:06:10.000Z","updated_at":"2023-09-06T17:46:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"f351d998-3660-4562-8bca-fefa3f4d8dee","html_url":"https://github.com/operable/conduit","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/operable/conduit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/operable%2Fconduit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/operable%2Fconduit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/operable%2Fconduit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/operable%2Fconduit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/operable","download_url":"https://codeload.github.com/operable/conduit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/operable%2Fconduit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268528524,"owners_count":24264861,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"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":"2024-11-10T04:36:59.537Z","updated_at":"2025-08-03T10:15:48.358Z","avatar_url":"https://github.com/operable.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Conduit\n\n[![Build Status](https://travis-ci.org/operable/conduit.svg?branch=master)](https://travis-ci.org/operable/conduit)\n[![Coverage Status](https://coveralls.io/repos/github/operable/conduit/badge.svg?branch=master)](https://coveralls.io/github/operable/conduit?branch=master)\n[![Ebert](https://ebertapp.io/github/operable/conduit.svg)](https://ebertapp.io/github/operable/conduit)\n\nTyped and validated JSON encoder and decoder\n\n## Installation\n\n```elixir\ndef deps do\n  [{:conduit, github: \"operable/conduit\", branch: \"master\"}]\nend\n```\n\n## Usage\n\n### Defining Conduit structs\n\n```elixir\ndefmodule MyApp.User do\n  use Conduit\n\n  field :first_name, :string, required: true\n  field :last_name, :string, required: true\n  field :userid, :string, required: true\nend\n\ndefmodule MyApp.Request do\n  use Conduit\n\n  field :command, :string, required: true\n  field :args, array: :string\n  field :requestor, object: MyApp.User\nend\n```\n\n### Marshaling and unmarshaling\n\n```elixir\ntry do\n  request = MyApp.Request.decode!(json)\nrescue\n  e in Conduit.ValidationError -\u003e\n    log_bad_data(e, json)\nend\n```\n\n### Validation\n\n```elixir\nrequest = MyApp.Request.decode!(json) |\u003e evaluate_args\ntry do\n  request.validate!\nrescue\n  e in Conduit.ValidatinError -\u003e\n    log_bad_args(e, json)\nend\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foperable%2Fconduit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foperable%2Fconduit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foperable%2Fconduit/lists"}