Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/himenon/argocd-typescript-openapi
Generate TypeScript Code from ArgoCD OpenAPI Schema.
https://github.com/himenon/argocd-typescript-openapi
argocd kubernetes openapi typescript
Last synced: about 1 month ago
JSON representation
Generate TypeScript Code from ArgoCD OpenAPI Schema.
- Host: GitHub
- URL: https://github.com/himenon/argocd-typescript-openapi
- Owner: Himenon
- License: mit
- Created: 2022-01-17T02:18:45.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-04T11:27:16.000Z (10 months ago)
- Last Synced: 2024-10-08T16:24:07.982Z (about 1 month ago)
- Topics: argocd, kubernetes, openapi, typescript
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@himenon/argocd-typescript-openapi
- Size: 493 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# @himenon/argocd-typescript-openapi
```bash
npm i @himenon/argocd-typescript-openapi
pnpm i @himenon/argocd-typescript-openapi
yarn add @himenon/argocd-typescript-openapi
```## Usage
```ts
import * as fs from "fs";
import * as yaml from "js-yaml"; // pnpm i -D js-yaml @types/js-yaml
import type { Schemas } from "@himenon/argocd-typescript-openapi/dist/v2.9.6";
```## Build
```ts
pnpm run build
```## Update Schemas
```bash
# Fetch and Build
pnpm run build:all# Fetch schemas
pnpm run fetch:schemas# Generate source code
pnpm run generate:code
```## OpenAPI Source for ArgoCD
-
## OpenAPI TypeScript Code Generator
- [@himenon/openapi-typescript-code-generator](https://github.com/Himenon/openapi-typescript-code-generator)
You can also just use the type definition
## Use Another Version
Edit [config.ts](./scripts/config.ts)
## LICENCE
[@Himenon/argocd-typescript-openapi](https://github.com/Himenon/argocd-typescript-openapi)・MIT