Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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