{"id":30198801,"url":"https://github.com/mikybars/openapi-generator-mill-plugin","last_synced_at":"2026-05-16T18:31:40.562Z","repository":{"id":308296804,"uuid":"1031994023","full_name":"mikybars/openapi-generator-mill-plugin","owner":"mikybars","description":"Simple Mill plugin for generating source files from an OpenApi spec","archived":false,"fork":false,"pushed_at":"2025-08-11T07:20:43.000Z","size":7,"stargazers_count":2,"open_issues_count":5,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-29T21:42:41.575Z","etag":null,"topics":["mill-plugin","openapi"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mikybars.png","metadata":{"files":{"readme":"readme.adoc","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-08-04T16:32:29.000Z","updated_at":"2025-08-05T14:32:36.000Z","dependencies_parsed_at":"2025-08-05T07:31:15.706Z","dependency_job_id":"85ac6b13-13fb-42cd-93d1-310368c8e985","html_url":"https://github.com/mikybars/openapi-generator-mill-plugin","commit_stats":null,"previous_names":["mikybars/openapi-generator-mill-plugin"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mikybars/openapi-generator-mill-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikybars%2Fopenapi-generator-mill-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikybars%2Fopenapi-generator-mill-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikybars%2Fopenapi-generator-mill-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikybars%2Fopenapi-generator-mill-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mikybars","download_url":"https://codeload.github.com/mikybars/openapi-generator-mill-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mikybars%2Fopenapi-generator-mill-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33114160,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["mill-plugin","openapi"],"created_at":"2025-08-13T07:26:00.377Z","updated_at":"2026-05-16T18:31:40.550Z","avatar_url":"https://github.com/mikybars.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"= OpenApi\n\nSimple https://mill-build.org/[Mill] plugin for generating source files from an https://www.openapis.org/[OpenApi] spec.\n\nJust extend `OpenApiModule` and declare an `OpenApiConfig` object\n\n.`build.mill`\n[source,scala]\n----\n//| mill-version: 1.0.2\n//| mvnDeps: [\"io.github.mikybars::openapi-generator-mill-plugin::0.1.0\"]\n\npackage build\n\nimport mill._, scalalib._\nimport mill.api.BuildCtx\n\nimport io.github.mikybars.mill.openapi.OpenApiModule\n\nobject foo extends JavaModule, OpenApiModule {\n\n  object openapi extends OpenApiConfig {\n     def inputSpec = Task.Source(BuildCtx.workspaceRoot / \"api/rest/v1/openapi.yml\")\n\n    def apiPackage: T[String] = \"com.example.foo.rest.api\"\n\n    def modelPackage: T[String] = \"com.example.foo.rest.model\"\n\n    def generatorName: T[String] = \"spring\"\n\n    def modelNameSuffix: T[String] = \"Dto\"\n\n    def additionalProperties: T[Map[String, String]] = Map(\n      // ...\n      \"useSpringBoot3\" -\u003e \"true\",\n      // ...\n    )\n  }\n\n}\n----\n\nThen\n[source,console]\n----\n$ ./mill foo.openapi.generate\n----\n\nAlternatively, if you'd like to hook up the `generate` task into the Mill build process, just override the `generatedSources` builtin task:\n\n`build.mill`\n[source,scala]\n----\nobject foo extends JavaModule, OpenApiModule {\n\n    object openapi extends OpenApiConfig\n\n    // ...\n\n    override def generatedSources: T[Seq[PathRef]] = Seq(\n      PathRef(Task.dest),\n      openapi.generate()\n    )}\n}\n----\n\nAnd then\n[source,console]\n----\n$ ./mill foo.compile  # or foo.run, foo.test ...\n----\n\nWith the above configuration, source files will be output into the `out/foo/openapi/generate.dest` folder.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikybars%2Fopenapi-generator-mill-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmikybars%2Fopenapi-generator-mill-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmikybars%2Fopenapi-generator-mill-plugin/lists"}