{"id":16348845,"url":"https://github.com/mstksg/servant-validate","last_synced_at":"2025-03-23T00:33:16.381Z","repository":{"id":53724525,"uuid":"314075288","full_name":"mstksg/servant-validate","owner":"mstksg","description":"Validate well-formed servant APIs at compile time","archived":false,"fork":false,"pushed_at":"2021-03-17T20:39:52.000Z","size":104,"stargazers_count":10,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-18T16:05:03.900Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Haskell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mstksg.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}},"created_at":"2020-11-18T22:37:15.000Z","updated_at":"2022-12-30T14:02:26.000Z","dependencies_parsed_at":"2022-09-10T12:41:06.474Z","dependency_job_id":null,"html_url":"https://github.com/mstksg/servant-validate","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mstksg%2Fservant-validate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mstksg%2Fservant-validate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mstksg%2Fservant-validate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mstksg%2Fservant-validate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mstksg","download_url":"https://codeload.github.com/mstksg/servant-validate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245040235,"owners_count":20551297,"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":[],"created_at":"2024-10-11T00:55:22.723Z","updated_at":"2025-03-23T00:33:16.073Z","avatar_url":"https://github.com/mstksg.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# servant-validate\n\nA package with \"test suites\" to help verify that your servant APIs are valid at\ncompile-time.\n\nCurrently the only property tested is that there are no duplicated paths.\n\n```haskell\ndata DeadlySinEnum = Lust | Gluttony | Greed | Sloth | Wrath | Envy | Pride\n\ntype MathApi  = \"sin\" :\u003e ReqBody '[JSON] Double        :\u003e Post '[JSON] NoContent\ntype SatanApi = \"sin\" :\u003e ReqBody '[JSON] DeadlySinEnum :\u003e Post '[JSON] NoContent\n\ntype MyApi = MathApi :\u003c|\u003e SatanApi\n\nmyApi :: Proxy MyApi\nmyApi = Proxy\n\nvalidMyApi :: ValidApiTree MyApi\nvalidMyApi = validApiTree myApi\n```\n\n```haskell\nwarning: [-Wdeferred-type-errors]\n    • Duplicate method in API at path /sin: \"POST\"\n    • In the expression: validApiTree myApi\n      In an equation for ‘validMyApi’: validMyApi = validApiTree myApi\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmstksg%2Fservant-validate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmstksg%2Fservant-validate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmstksg%2Fservant-validate/lists"}