{"id":15066025,"url":"https://github.com/himenon/kubernetes-typescript-openapi","last_synced_at":"2025-04-10T13:40:43.292Z","repository":{"id":42569132,"uuid":"425651462","full_name":"Himenon/kubernetes-typescript-openapi","owner":"Himenon","description":"Implementation of TypeScript generated from Kubernetes OpenAPI","archived":false,"fork":false,"pushed_at":"2024-12-25T01:46:07.000Z","size":3950,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T12:21:26.540Z","etag":null,"topics":["k8s","kubernetes","openapi","swagger","typescript"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@himenon/kubernetes-typescript-openapi","language":"TypeScript","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/Himenon.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","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":"2021-11-08T00:33:09.000Z","updated_at":"2024-12-25T01:46:10.000Z","dependencies_parsed_at":"2024-09-29T11:02:31.542Z","dependency_job_id":"ab8ab545-2fc1-444c-8c05-8951dbea302f","html_url":"https://github.com/Himenon/kubernetes-typescript-openapi","commit_stats":{"total_commits":19,"total_committers":3,"mean_commits":6.333333333333333,"dds":0.5263157894736843,"last_synced_commit":"2438199a72ec79835cae3856b36930bf1e1e4f02"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":"Himenon/template-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himenon%2Fkubernetes-typescript-openapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himenon%2Fkubernetes-typescript-openapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himenon%2Fkubernetes-typescript-openapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himenon%2Fkubernetes-typescript-openapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Himenon","download_url":"https://codeload.github.com/Himenon/kubernetes-typescript-openapi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248225947,"owners_count":21068088,"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":["k8s","kubernetes","openapi","swagger","typescript"],"created_at":"2024-09-25T00:59:58.347Z","updated_at":"2025-04-10T13:40:43.271Z","avatar_url":"https://github.com/Himenon.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @himenon/kubernetes-typescript-openapi\n\n```bash\nnpm  i   @himenon/kubernetes-typescript-openapi\n# or\npnpm i   @himenon/kubernetes-typescript-openapi\n# or\nyarn add @himenon/kubernetes-typescript-openapi\n```\n\n## Usage\n\n```ts\nimport * as fs from \"fs\";\nimport * as yaml from \"js-yaml\"; // yarn add js-yaml @types/js-yaml\nimport type { Schemas } from \"@himenon/kubernetes-typescript-openapi/dist/v1.29.1\";\n\nconst podTemplateSpec: Schemas.io$k8s$api$core$v1$PodTemplateSpec = {\n  metadata: {\n    labels: {\n      app: \"nginx\",\n    },\n  },\n  spec: {\n    containers: [\n      {\n        name: \"nginx\",\n        image: \"nginx:1.14.2\",\n        ports: [\n          {\n            containerPort: 80,\n          },\n        ],\n      },\n    ],\n  },\n};\n\nconst deployment: Schemas.io$k8s$api$apps$v1$Deployment = {\n  apiVersion: \"apps/v1\",\n  kind: \"Deployment\",\n  metadata: {\n    name: \"nginx-deployment\",\n    labels: {\n      app: \"nginx\",\n    },\n  },\n  spec: {\n    replicas: 3,\n    selector: {\n      matchLabels: {\n        app: \"nginx\",\n      },\n    },\n    template: podTemplateSpec,\n  },\n};\n\nconst text = yaml.dump(deployment, { noRefs: true, lineWidth: 144 });\nfs.writeFileSync(\"deployment.yml\", text, \"utf-8\");\n```\n\n## Build\n\n```ts\npnpm build\n```\n\n## OpenAPI Source for Kubernetes\n\n- \u003chttps://github.com/kubernetes/kubernetes/blob/master/api/openapi-spec/swagger.json\u003e\n\n## OpenAPI TypeScript Code Generator\n\n- [@himenon/openapi-typescript-code-generator](https://github.com/Himenon/openapi-typescript-code-generator)\n\nYou can also just use the type definition\n\n## Use Another Version\n\nEdit [config.ts](./scripts/config.ts)\n\n## LICENCE\n\n[@Himenon/kubernetes-typescript-openapi](https://github.com/Himenon/kubernetes-typescript-openapi)・MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimenon%2Fkubernetes-typescript-openapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhimenon%2Fkubernetes-typescript-openapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimenon%2Fkubernetes-typescript-openapi/lists"}