{"id":15595442,"url":"https://github.com/cdimascio/gin-openapi","last_synced_at":"2025-08-13T02:44:58.884Z","repository":{"id":56554226,"uuid":"308956636","full_name":"cdimascio/gin-openapi","owner":"cdimascio","description":"Automatically validates API requests against an OpenAPI 3 spec.","archived":false,"fork":false,"pushed_at":"2020-10-31T22:05:35.000Z","size":13,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-24T06:36:21.865Z","etag":null,"topics":["gin","gin-gonic","middleware","openapi","request-validation","validation"],"latest_commit_sha":null,"homepage":"","language":"Go","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/cdimascio.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-10-31T19:25:22.000Z","updated_at":"2022-08-24T10:39:07.000Z","dependencies_parsed_at":"2022-08-15T20:50:35.241Z","dependency_job_id":null,"html_url":"https://github.com/cdimascio/gin-openapi","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cdimascio/gin-openapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdimascio%2Fgin-openapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdimascio%2Fgin-openapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdimascio%2Fgin-openapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdimascio%2Fgin-openapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdimascio","download_url":"https://codeload.github.com/cdimascio/gin-openapi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdimascio%2Fgin-openapi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270170132,"owners_count":24539353,"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-13T02:00:09.904Z","response_time":66,"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":["gin","gin-gonic","middleware","openapi","request-validation","validation"],"created_at":"2024-10-03T01:00:22.297Z","updated_at":"2025-08-13T02:44:58.850Z","avatar_url":"https://github.com/cdimascio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"## gin-openapi\n\nAutomatically validates API requests against an OpenAPI 3 spec. \n\n## Usage\n```go\npackage main\n\nimport (\n\topenapi \"github.com/cdimascio/gin-openapi/pkg\"\n\t\"github.com/gin-gonic/gin\"\n)\n\nfunc main() {\n    router := gin.Default()\n\t\n    // Add gin-openapi middleware \n    router.Use(openapi.ValidateRequests(\"spec.yml\"))\n\n    // Add routes\n    router.POST(\"/v1/ping\", func(c *gin.Context) {\n        c.JSON(200, gin.H{ \"id\": \"pong\" })\n    })\n\n    router.Run(\":8080\")\n}\n```\n\n## License MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdimascio%2Fgin-openapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdimascio%2Fgin-openapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdimascio%2Fgin-openapi/lists"}