{"id":51331159,"url":"https://github.com/makefile-inc/openapi","last_synced_at":"2026-07-01T23:03:52.229Z","repository":{"id":364615627,"uuid":"1268419132","full_name":"makefile-inc/openapi","owner":"makefile-inc","description":"Makefiles includes for generations client and servers and convertions openapi specs","archived":false,"fork":false,"pushed_at":"2026-06-13T19:02:00.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-13T19:29:29.536Z","etag":null,"topics":["includes","make","makefile","makefile-snippets","openapi"],"latest_commit_sha":null,"homepage":"","language":"Makefile","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/makefile-inc.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-13T14:07:59.000Z","updated_at":"2026-06-13T19:02:54.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/makefile-inc/openapi","commit_stats":null,"previous_names":["makefile-inc/openapi"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/makefile-inc/openapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makefile-inc%2Fopenapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makefile-inc%2Fopenapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makefile-inc%2Fopenapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makefile-inc%2Fopenapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/makefile-inc","download_url":"https://codeload.github.com/makefile-inc/openapi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makefile-inc%2Fopenapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35025987,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-01T02:00:05.325Z","response_time":130,"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":["includes","make","makefile","makefile-snippets","openapi"],"created_at":"2026-07-01T23:03:51.775Z","updated_at":"2026-07-01T23:03:52.225Z","avatar_url":"https://github.com/makefile-inc.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openapi\nMakefiles includes for generations client and servers and convertions openapi specs.\n\n## Deps\n\nThis suit uses https://github.com/makefile-inc/common suit.\n\n## Install\n\n### Manual\n\nYou can copy all files in your own repo (for example in subdir `makefile-openapi`) \nand include in root Makefile in the next way:\n\n```Makefile\ninclude $(CURDIR)/makefile-openapi/include.mk.inc\n```\n\n### As submodule\n\nAdd submodule:\n\n```bash\ngit submodule add git@github.com:makefile-inc/openapi.git makefile-openapi\n```\n\nCheckout to target wersion:\n\n```\npushd .\ncd makefile-openapi\ngit fetch -a \u0026\u0026 git checkout v0.1.0 \u0026\u0026 git pull\npopd\n```\n\nInclude in root Makefile in the next way:\n\n```Makefile\ninclude $(CURDIR)/makefile-openapi/include.mk.inc\n```\n\n## Targets\n\n- `openapi/update/spec` - download spec and convert to json\n  Params:\n  - SPEC_URL - url to to download openapi spec\n  - OUT_PATH - path to output spec\n  Example:\n  ```bash\n  make openapi/update/spec SPEC_URL=https://raw.githubusercontent.com/moby/moby/refs/heads/master/api/swagger.yaml OUT_PATH=tmp-openapi/v2-1.json\n  ```\n- `openapi/convert/to/v3` - convert v2 spec to v3. Uses `swaggerapi/swagger-converter` docker image for converting. \n  Params:\n  - INPUT_SPEC - file with v2 spec\n  - OUT_SPEC_PATH - file to out v3 spec\n  Example:\n  ```bash\n  make openapi/convert/to/v3 INPUT_SPEC=tmp-openapi/v2-1.json OUT_SPEC_PATH=tmp-openapi/v3-1.json\n  ```\n- `openapi/check/gitignore` - Check that .gitignore up to date with makefile-inc/common\n  Userfull for check up to date root .gitignore with makefile-inc/common during update.\n\n### Example\n\nYou can create your own target for one task regenerate spec like:\n\n```Makefile\ninclude $(CURDIR)/makefile-openapi/include.mk.inc\nopenapi/dir:\n\t@mkdir -p openapi\ngenerate/openapi: export SPEC_URL = https://raw.githubusercontent.com/moby/moby/refs/heads/master/api/swagger.yaml\ngenerate/openapi: export OUT_PATH = openapi/v2.json\ngenerate/openapi: export INPUT_SPEC = openapi/v2.json\ngenerate/openapi: export OUT_PATH = openapi/v3.json\ngenerate/openapi: openapi/dir openapi/update/spec openapi/convert/to/v3\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakefile-inc%2Fopenapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmakefile-inc%2Fopenapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakefile-inc%2Fopenapi/lists"}