{"id":14155430,"url":"https://github.com/pb33f/libopenapi","last_synced_at":"2026-04-02T18:04:58.521Z","repository":{"id":47920773,"uuid":"514939258","full_name":"pb33f/libopenapi","owner":"pb33f","description":"libopenapi is a fully featured, high performance OpenAPI 3.2, 3.1, 3.0 and Swagger parser, library, validator and toolkit for golang applications.","archived":false,"fork":false,"pushed_at":"2026-02-02T23:04:33.000Z","size":9106,"stargazers_count":778,"open_issues_count":13,"forks_count":96,"subscribers_count":7,"default_branch":"main","last_synced_at":"2026-02-03T11:44:56.855Z","etag":null,"topics":["diff","go","golang","library","oas","oasv3","openapi","openapi-spec","openapi-specification","openapi3","openapi3-1","openapi3-validation","openapi31","parser","swagger","swagger-api","swagger2"],"latest_commit_sha":null,"homepage":"https://pb33f.io/libopenapi/","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/pb33f.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"daveshanley"}},"created_at":"2022-07-17T19:41:10.000Z","updated_at":"2026-02-02T18:44:22.000Z","dependencies_parsed_at":"2023-10-11T23:40:12.368Z","dependency_job_id":"7e6020dd-3b05-44ed-baa1-6f67cece872d","html_url":"https://github.com/pb33f/libopenapi","commit_stats":{"total_commits":1012,"total_committers":38,"mean_commits":26.63157894736842,"dds":"0.22924901185770752","last_synced_commit":"a043870b90dbaa88997b21ea2e5ebb18fbf8f98c"},"previous_names":[],"tags_count":217,"template":false,"template_full_name":null,"purl":"pkg:github/pb33f/libopenapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pb33f%2Flibopenapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pb33f%2Flibopenapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pb33f%2Flibopenapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pb33f%2Flibopenapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pb33f","download_url":"https://codeload.github.com/pb33f/libopenapi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pb33f%2Flibopenapi/sbom","scorecard":{"id":724679,"data":{"date":"2025-08-11","repo":{"name":"github.com/pb33f/libopenapi","commit":"c3b03f1200e8894d9eba0e8a5419200cea29893a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.6,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":2,"reason":"Found 1/5 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 23 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Pinned-Dependencies","score":1,"reason":"dependency not pinned by hash detected -- score normalized to 1","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yaml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/pb33f/libopenapi/build.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yaml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/pb33f/libopenapi/build.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yaml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/pb33f/libopenapi/build.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yaml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/pb33f/libopenapi/build.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build.yaml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/pb33f/libopenapi/build.yaml/main?enable=pin","Warn: downloadThenRun not pinned by hash: .github/workflows/build.yaml:48","Warn: goCommand not pinned by hash: .github/workflows/build.yaml:55","Warn: goCommand not pinned by hash: .github/workflows/build.yaml:56","Warn: goCommand not pinned by hash: .github/workflows/build.yaml:57","Warn: goCommand not pinned by hash: .github/workflows/build.yaml:58","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   1 out of   5 goCommand dependencies pinned","Info:   0 out of   1 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T12:25:09.474Z","repository_id":47920773,"created_at":"2025-08-22T12:25:09.474Z","updated_at":"2025-08-22T12:25:09.474Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29062485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T23:14:54.203Z","status":"ssl_error","status_checked_at":"2026-02-03T23:14:50.873Z","response_time":96,"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":["diff","go","golang","library","oas","oasv3","openapi","openapi-spec","openapi-specification","openapi3","openapi3-1","openapi3-validation","openapi31","parser","swagger","swagger-api","swagger2"],"created_at":"2024-08-17T08:03:08.069Z","updated_at":"2026-04-02T18:04:58.493Z","avatar_url":"https://github.com/pb33f.png","language":"Go","readme":"\u003cp align=\"center\"\u003e\n\t\u003cimg src=\"libopenapi-logo.png\" alt=\"libopenapi\" height=\"300px\" width=\"450px\"/\u003e\n\u003c/p\u003e\n\n# libopenapi - enterprise grade OpenAPI tools for golang.\n\n\n![Pipeline](https://github.com/pb33f/libopenapi/workflows/Build/badge.svg)\n[![GoReportCard](https://goreportcard.com/badge/github.com/pb33f/libopenapi)](https://goreportcard.com/report/github.com/pb33f/libopenapi)\n[![codecov](https://codecov.io/gh/pb33f/libopenapi/branch/main/graph/badge.svg?)](https://codecov.io/gh/pb33f/libopenapi)\n[![discord](https://img.shields.io/discord/923258363540815912)](https://discord.gg/x7VACVuEGP)\n[![Docs](https://img.shields.io/badge/godoc-reference-5fafd7)](https://pkg.go.dev/github.com/pb33f/libopenapi)\n\nlibopenapi has full support for OpenAPI 3, 3.1 and 3.2. It can handle the largest and most\ncomplex specifications you can think of.\n\nOverlays and Arazzo are also fully supported.\n\n---\n\n## Sponsors \u0026 users\nIf your company is using `libopenapi`, please considering [supporting this project](https://github.com/sponsors/daveshanley), \nlike our _very kind_ sponsors:\n\n\u003ca href=\"https://scalar.com\"\u003e\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\".github/sponsors/scalar-dark.png\"\u003e\n  \u003cimg alt=\"scalar'\" src=\".github/sponsors/scalar-light.png\"\u003e\n\u003c/picture\u003e\n\u003c/a\u003e\n\n[scalar](https://scalar.com)\n\n\u003ca href=\"https://apideck.com\"\u003e\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\".github/sponsors/apideck-dark.png\"\u003e\n  \u003cimg alt=\"apideck'\" src=\".github/sponsors/apideck-light.png\"\u003e\n\u003c/picture\u003e\n\u003c/a\u003e\n\n[apideck](https://apideck.com)\n\n---\n\n## Come chat with us\n\nNeed help? Have a question? Want to share your work? [Join our discord](https://discord.gg/x7VACVuEGP) and\ncome say hi!\n\n## Check out the `libopenapi-validator`\n\nNeed to validate requests, responses, parameters or schemas? Use the new \n[libopenapi-validator](https://github.com/pb33f/libopenapi-validator) module.\n\n## Documentation\n\nSee all the documentation at https://pb33f.io/libopenapi/\n\n- [Installing libopenapi](https://pb33f.io/libopenapi/installing/)\n- [Using OpenAPI](https://pb33f.io/libopenapi/openapi/)\n- [Using Swagger](https://pb33f.io/libopenapi/swagger/)\n- [The Data Model](https://pb33f.io/libopenapi/model/)\n- [Validation](https://pb33f.io/libopenapi/validation/)\n- [Modifying / Mutating the OpenAPI Model](https://pb33f.io/libopenapi/modifying/)\n- [Mocking / Creating Examples](https://pb33f.io/libopenapi/mocks/)\n- [Using Vendor Extensions](https://pb33f.io/libopenapi/extensions/)\n- [The Index](https://pb33f.io/libopenapi/index/)\n- [The Resolver](https://pb33f.io/libopenapi/resolver/)\n- [The Rolodex](https://pb33f.io/libopenapi/rolodex/)\n- [Circular References](https://pb33f.io/libopenapi/circular-references/)\n- [Bundling Specs](https://pb33f.io/libopenapi/bundling/)\n- [What Changed / Diff Engine](https://pb33f.io/libopenapi/what-changed/)\n- [Overlays](https://pb33f.io/libopenapi/overlays/)\n- [Arazzo](https://pb33f.io/libopenapi/arazzo/)\n- [FAQ](https://pb33f.io/libopenapi/faq/)\n- [About libopenapi](https://pb33f.io/libopenapi/about/)\n---\n\n### Quick-start tutorial\n\n👀 **Get rolling fast using `libopenapi` with the \n[Parsing OpenAPI files using go](https://quobix.com/articles/parsing-openapi-using-go/)** guide 👀\n\nOr, follow these steps and see something in a few seconds.\n\n#### Step 1: Grab the petstore\n\n```bash\ncurl https://raw.githubusercontent.com/OAI/OpenAPI-Specification/main/_archive_/schemas/v3.0/pass/petstore.yaml \u003e petstorev3.json\n```\n\n#### Step 2: Grab libopenapi\n\n```bash\ngo get github.com/pb33f/libopenapi\n```\n\n#### Step 3: Parse the petstore using libopenapi\n\nCopy and paste this code into a `main.go` file.\n\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\t\"github.com/pb33f/libopenapi\"\n)\n\nfunc main() {\n\tpetstore, _ := os.ReadFile(\"petstorev3.json\")\n\tdocument, err := libopenapi.NewDocument(petstore)\n\tif err != nil {\n\t\tpanic(fmt.Sprintf(\"cannot create new document: %e\", err))\n\t}\n\tdocModel, err := document.BuildV3Model()\n\tif err != nil {\n\t\tpanic(fmt.Sprintf(\"cannot create v3 model from document: %e\", err))\n\t}\n\n\t// The following fails after the first iteration\n\tfor schemaName, schema := range docModel.Model.Components.Schemas.FromOldest() {\n\t\tif schema.Schema().Properties != nil {\n\t\t\tfmt.Printf(\"Schema '%s' has %d properties\\n\", schemaName, schema.Schema().Properties.Len())\n\t\t}\n\t}\n}\n```\n\nRun it, which should print out:\n\n```bash\nSchema 'Pet' has 3 properties\nSchema 'Error' has 2 properties\n```\n\n\n\u003e Read the full docs at [https://pb33f.io/libopenapi/](https://pb33f.io/libopenapi/)\n\n---\n\nLogo gopher is modified, originally from [egonelbre](https://github.com/egonelbre/gophers)\n","funding_links":["https://github.com/sponsors/daveshanley"],"categories":["library"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpb33f%2Flibopenapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpb33f%2Flibopenapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpb33f%2Flibopenapi/lists"}