{"id":25179109,"url":"https://github.com/lukehedger/contract-first","last_synced_at":"2026-05-09T09:17:00.270Z","repository":{"id":54312368,"uuid":"316573733","full_name":"lukehedger/contract-first","owner":"lukehedger","description":"JSON Schema-based, client-server data definitions for contract-first development","archived":false,"fork":false,"pushed_at":"2021-02-24T20:32:36.000Z","size":106,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T15:18:14.786Z","etag":null,"topics":["aws-apigateway","aws-eventbridge","aws-lambda","json-schema","openapi","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/lukehedger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-27T18:28:26.000Z","updated_at":"2022-06-10T12:19:48.000Z","dependencies_parsed_at":"2022-08-13T11:40:59.668Z","dependency_job_id":null,"html_url":"https://github.com/lukehedger/contract-first","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"lukehedger/cdk-init","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukehedger%2Fcontract-first","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukehedger%2Fcontract-first/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukehedger%2Fcontract-first/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukehedger%2Fcontract-first/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukehedger","download_url":"https://codeload.github.com/lukehedger/contract-first/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247117752,"owners_count":20886439,"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","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":["aws-apigateway","aws-eventbridge","aws-lambda","json-schema","openapi","typescript"],"created_at":"2025-02-09T15:18:19.945Z","updated_at":"2026-05-09T09:16:55.229Z","avatar_url":"https://github.com/lukehedger.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Contract-First Development\n\n## Universal Schema\n\n\u003e JSON Schema-based, client-server data definitions for _contract-first development_\n\n### Shared (Frontend and Backend)\n\n- JSON Schema to define API requests and responses, including error responses\n\n### Frontend\n\n- Yup schema to validate user input, **generated from shared JSON Schema**\n- TypeScript type definitions to validate developer input (request and response), **generated from shared JSON Schema**\n\n### Backend\n\n- API request validation to validate user/client-generated input, **generated from shared JSON Schema**\n- OpenAPI specification, **generated from shared JSON Schema**\n- _Optional: API documentation, generated from OpenAPI specification (e.g. [ReDoc](https://github.com/Redocly/redoc))_\n\n## Example\n\n- React app with Yup form validation and TypeScript type-checking\n- Lambda function with typed event body\n- _Optional: EventBridge Schema Registry and event bus_\n\n![Untitled-2020-12-01-1940](https://user-images.githubusercontent.com/1913316/100788961-b91f7d80-340d-11eb-9b22-558901aaf92c.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukehedger%2Fcontract-first","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukehedger%2Fcontract-first","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukehedger%2Fcontract-first/lists"}