{"id":20751171,"url":"https://github.com/openapitools/openapi-generator-bazel","last_synced_at":"2025-09-14T16:37:23.893Z","repository":{"id":35526932,"uuid":"216111045","full_name":"OpenAPITools/openapi-generator-bazel","owner":"OpenAPITools","description":"Bazel plugin for OpenAPI Generator","archived":false,"fork":false,"pushed_at":"2025-03-06T09:30:43.000Z","size":61,"stargazers_count":67,"open_issues_count":14,"forks_count":52,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-06T10:32:22.912Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Starlark","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OpenAPITools.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":"2019-10-18T21:42:30.000Z","updated_at":"2025-03-06T09:30:45.000Z","dependencies_parsed_at":"2024-02-03T17:04:58.599Z","dependency_job_id":"8fd2a7f9-0e8f-4ddb-bedd-3a3d9f3e6e3b","html_url":"https://github.com/OpenAPITools/openapi-generator-bazel","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenAPITools%2Fopenapi-generator-bazel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenAPITools%2Fopenapi-generator-bazel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenAPITools%2Fopenapi-generator-bazel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenAPITools%2Fopenapi-generator-bazel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenAPITools","download_url":"https://codeload.github.com/OpenAPITools/openapi-generator-bazel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243050026,"owners_count":20227950,"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-11-17T08:31:29.789Z","updated_at":"2025-09-14T16:37:23.881Z","avatar_url":"https://github.com/OpenAPITools.png","language":"Starlark","readme":"## This project is looking for maintainers. Please refer to the [announcement](https://github.com/OpenAPITools/openapi-generator-bazel/issues/60) for more information.\n\n# OpenAPI Generator Bazel\n\nThis repo was created to integrate the OpenAPI code generation CLI with Bazel.\n\nIf you find this project useful, please kindly consider supporting this project financially via https://opencollective.com/openapi_generator :pray:\n\n## Quickstart\n\nAs of v0.1.8, this only supports [Bazel Modules](https://bazel.build/external/module).  The setup is much simpler.\n\n1. Add the following code to your  `MODULE.bazel` file at the root of your repository\n\n```\nbazel_dep(name = \"openapi_tools_generator_bazel\", version = \"0.1.8\")\nopenapi_gen = use_extension(\"@openapi_tools_generator_bazel//:extension.bzl\", \"openapi_gen\")\nopenapi_gen.client(\n    sha256 = \"f18d771e98f2c5bb169d1d1961de4f94866d2901abc1e16177dd7e9299834721\",\n    version = \"6.5.0\",\n)\nuse_repo(openapi_gen, \"openapi_tools_generator_bazel_cli\")\n\n# Or, to use the default client (currently 7.2.0), remove the parameters to client().\nopenapi_gen.client() \n```\n\n2. Create a BUILD.bazel file next to the .yaml file you wish to generate code from.\n   The below example generates a go library within a generated directory named `petstore_go`\n\n```\nload(\"@openapi_tools_generator_bazel//:defs.bzl\", \"openapi_generator\")\n\nopenapi_generator(\n    name = \"petstore_go\",\n    generator = \"go\",\n    spec = \"petstore.yaml\",\n)\n```\n","funding_links":["https://opencollective.com/openapi_generator"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenapitools%2Fopenapi-generator-bazel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenapitools%2Fopenapi-generator-bazel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenapitools%2Fopenapi-generator-bazel/lists"}