{"id":15286030,"url":"https://github.com/onrik/gaws","last_synced_at":"2026-02-16T10:49:17.965Z","repository":{"id":46589705,"uuid":"515461559","full_name":"onrik/gaws","owner":"onrik","description":"OpenAPI doc generator for Golang","archived":false,"fork":false,"pushed_at":"2024-10-30T10:14:04.000Z","size":50,"stargazers_count":4,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-07T03:47:04.220Z","etag":null,"topics":["golang","openapi","openapi3","swagger","swagger2"],"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/onrik.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-19T06:25:23.000Z","updated_at":"2024-10-30T10:13:38.000Z","dependencies_parsed_at":"2024-03-23T07:26:39.303Z","dependency_job_id":"433a3a9b-353a-45d8-a214-9f30c99546a0","html_url":"https://github.com/onrik/gaws","commit_stats":{"total_commits":28,"total_committers":3,"mean_commits":9.333333333333334,"dds":0.2857142857142857,"last_synced_commit":"2651b65fd0558213246fea6f190caf1cbf9b4d41"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/onrik/gaws","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onrik%2Fgaws","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onrik%2Fgaws/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onrik%2Fgaws/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onrik%2Fgaws/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onrik","download_url":"https://codeload.github.com/onrik/gaws/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onrik%2Fgaws/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29506275,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["golang","openapi","openapi3","swagger","swagger2"],"created_at":"2024-09-30T15:10:14.445Z","updated_at":"2026-02-16T10:49:17.927Z","avatar_url":"https://github.com/onrik.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gaws\n\nOpenAPI (swagger) docs generator for Golang.\n\n## Examples\n\n```golang\npackage users\n\nimport (\n\t\"net/http\"\n\t\"time\"\n)\n\ntype Group struct {\n\tName string `json:\"name\"`\n}\n\ntype User struct {\n\t_         struct{}  `json:\"-\" openapiDesc:\"User\"` // Description for enitre struct\n\tID        uint      `json:\"id\"`\n\tName      string    `json:\"name\" openapiExt:\"x-ext-key:ext-value\"` //  Passing openapi extensions to spec as is\n\tEmail     string    `json:\"email\" openapiDesc:\"User's email\"` // Description for current field\n\tIsAdmin   bool      `json:\"is_admin\"`\n\tGroups    []Group   `json:\"groups\"`\n\tCreatedAt time.Time `json:\"created_at\"`\n\tStatus    string    `json:\"status\" openapiEnum:\"new,confirmed,deleted\"` // Enum for current field values\t\n}\n\ntype createUserRequest struct {\n\tEmail     string   `json:\"email\"`\n\tName      string   `json:\"name\"`\n\tPassword1 string   `json:\"password1\"`\n\tPassword2 string   `json:\"password2\"`\n\tIsAdmin   bool     `json:\"is_admin\"`\n\tGroups    []string `json:\"groups\"`\n}\n\ntype updateUserRequest struct {\n\tEmail    *string   `json:\"email,omitempty\"`\n\tName     *string   `json:\"name,omitempty\"`\n\tPassword *string   `json:\"password,omitempty\"`\n\tIsAdmin  *bool     `json:\"is_admin,omitempty\"`\n\tGroups   *[]string `json:\"groups,omitempty\"`\n}\n\n/*\nUsers returns users list\n@openapi GET /api/v1/users\n@openapiParam q in=query, type=string, example=John\n@openapiResponse 200 application/json {\"users\": []User}\n*/\nfunc Users(w http.ResponseWriter, r *http.Request) {\n}\n\n/*\nCreateUser creates user\n@openapi POST /api/v1/users\n@openapiRequest application/json createUserRequest\n@openapiResponse 400 application/json {\"message\": \"email=email;name=required\"}\n@openapiResponse 200 application/json {\"user\": User}\n*/\nfunc CreateUser(w http.ResponseWriter, r *http.Request) {\n}\n\n/*\nUpdateUser updates user\n@openapi POST /api/v1/users/{id}\n@openapiParam id in=path, type=int, example=56\n@openapiRequest application/json updateUserRequest\n@openapiResponse 404 application/json {\"message\": \"Not Found\"}\n@openapiResponse 200 application/json {\"user\": User}\n*/\nfunc UpdateUser(w http.ResponseWriter, r *http.Request) {\n}\n\n/*\nDeleteUser delete user\n@openapi DELETE /api/v1/users/{id}\n@openapiParam id in=path, type=int, example=56\n@openapiResponse 404 application/json {\"message\": \"Not Found\"}\n@openapiResponse 200 application/json {}\n*/\nfunc DeleteUser(w http.ResponseWriter, r *http.Request) {\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonrik%2Fgaws","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonrik%2Fgaws","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonrik%2Fgaws/lists"}