diff --git a/README.md b/README.md index 94f79dd..dc8e843 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ EXAMPLES $ openapi auth --security BasicAuth --username admin --password password ``` -_See code: [src/commands/auth.ts](https://github.com/openapistack/openapicmd/blob/v2.5.2/src/commands/auth.ts)_ +_See code: [src/commands/auth.ts](https://github.com/openapistack/openapicmd/blob/v2.6.0/src/commands/auth.ts)_ ## `openapi call [DEFINITION]` @@ -149,7 +149,7 @@ EXAMPLES $ openapi call -o createPet -d '{ "name": "Garfield" }' ``` -_See code: [src/commands/call.ts](https://github.com/openapistack/openapicmd/blob/v2.5.2/src/commands/call.ts)_ +_See code: [src/commands/call.ts](https://github.com/openapistack/openapicmd/blob/v2.6.0/src/commands/call.ts)_ ## `openapi help [COMMAND]` @@ -213,7 +213,7 @@ EXAMPLES $ openapi info ./openapi.yml ``` -_See code: [src/commands/info.ts](https://github.com/openapistack/openapicmd/blob/v2.5.2/src/commands/info.ts)_ +_See code: [src/commands/info.ts](https://github.com/openapistack/openapicmd/blob/v2.6.0/src/commands/info.ts)_ ## `openapi init` @@ -246,7 +246,7 @@ EXAMPLES $ openapi init --title 'My API' > openapi.yml ``` -_See code: [src/commands/init.ts](https://github.com/openapistack/openapicmd/blob/v2.5.2/src/commands/init.ts)_ +_See code: [src/commands/init.ts](https://github.com/openapistack/openapicmd/blob/v2.6.0/src/commands/init.ts)_ ## `openapi load DEFINITION` @@ -273,7 +273,7 @@ EXAMPLES $ openapi load https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml ``` -_See code: [src/commands/load.ts](https://github.com/openapistack/openapicmd/blob/v2.5.2/src/commands/load.ts)_ +_See code: [src/commands/load.ts](https://github.com/openapistack/openapicmd/blob/v2.6.0/src/commands/load.ts)_ ## `openapi mock [DEFINITION]` @@ -312,7 +312,7 @@ EXAMPLES $ openapi mock https://raw.githubusercontent.com/OAI/OpenAPI-Specification/master/examples/v3.0/petstore.yaml ``` -_See code: [src/commands/mock.ts](https://github.com/openapistack/openapicmd/blob/v2.5.2/src/commands/mock.ts)_ +_See code: [src/commands/mock.ts](https://github.com/openapistack/openapicmd/blob/v2.6.0/src/commands/mock.ts)_ ## `openapi read [DEFINITION]` @@ -357,7 +357,7 @@ EXAMPLES $ openapi read ./openapi.yml -f json > openapi.json ``` -_See code: [src/commands/read.ts](https://github.com/openapistack/openapicmd/blob/v2.5.2/src/commands/read.ts)_ +_See code: [src/commands/read.ts](https://github.com/openapistack/openapicmd/blob/v2.6.0/src/commands/read.ts)_ ## `openapi redoc [DEFINITION]` @@ -397,7 +397,7 @@ EXAMPLES $ openapi redoc ./openapi.yml --bundle outDir ``` -_See code: [src/commands/redoc.ts](https://github.com/openapistack/openapicmd/blob/v2.5.2/src/commands/redoc.ts)_ +_See code: [src/commands/redoc.ts](https://github.com/openapistack/openapicmd/blob/v2.6.0/src/commands/redoc.ts)_ ## `openapi swagger-editor [DEFINITION]` @@ -425,7 +425,7 @@ EXAMPLES $ openapi swagger-editor ./openapi.yml ``` -_See code: [src/commands/swagger-editor.ts](https://github.com/openapistack/openapicmd/blob/v2.5.2/src/commands/swagger-editor.ts)_ +_See code: [src/commands/swagger-editor.ts](https://github.com/openapistack/openapicmd/blob/v2.6.0/src/commands/swagger-editor.ts)_ ## `openapi swagger-ui [DEFINITION]` @@ -476,7 +476,7 @@ EXAMPLES $ openapi swagger-ui ./openapi.yml --bundle outDir ``` -_See code: [src/commands/swagger-ui.ts](https://github.com/openapistack/openapicmd/blob/v2.5.2/src/commands/swagger-ui.ts)_ +_See code: [src/commands/swagger-ui.ts](https://github.com/openapistack/openapicmd/blob/v2.6.0/src/commands/swagger-ui.ts)_ ## `openapi swagger2openapi [DEFINITION]` @@ -519,7 +519,7 @@ EXAMPLES $ openapi swagger2openapi --yaml ./swagger.json > openapi.yml ``` -_See code: [src/commands/swagger2openapi.ts](https://github.com/openapistack/openapicmd/blob/v2.5.2/src/commands/swagger2openapi.ts)_ +_See code: [src/commands/swagger2openapi.ts](https://github.com/openapistack/openapicmd/blob/v2.6.0/src/commands/swagger2openapi.ts)_ ## `openapi test` @@ -565,7 +565,7 @@ EXAMPLES $ openapi test -o getPets ``` -_See code: [src/commands/test/index.ts](https://github.com/openapistack/openapicmd/blob/v2.5.2/src/commands/test/index.ts)_ +_See code: [src/commands/test/index.ts](https://github.com/openapistack/openapicmd/blob/v2.6.0/src/commands/test/index.ts)_ ## `openapi test add [DEFINITION]` @@ -620,7 +620,7 @@ EXAMPLES $ openapi test add -o getPet --checks all ``` -_See code: [src/commands/test/add.ts](https://github.com/openapistack/openapicmd/blob/v2.5.2/src/commands/test/add.ts)_ +_See code: [src/commands/test/add.ts](https://github.com/openapistack/openapicmd/blob/v2.6.0/src/commands/test/add.ts)_ ## `openapi typegen [DEFINITION]` @@ -630,7 +630,7 @@ Generate types from openapi definition USAGE $ openapi typegen [DEFINITION] [-h] [-D] [-B] [-R /] [-H ...] [-V] [-S http://localhost:9000...] [-I {"info":{"version":"1.0.0"}}...] [-E x-internal] [-C default|all|openapi_client_axios|openapi_backend] [-U] [-b - ] [-A] + ] [--client] [--backend] [-A] ARGUMENTS DEFINITION input definition file @@ -655,6 +655,8 @@ FLAGS -b, --banner= include a banner comment at the top of the generated file -h, --help Show CLI help. + --backend Generate types for openapi-backend + --client Generate types for openapi-client-axios (default) DESCRIPTION Generate types from openapi definition @@ -663,7 +665,7 @@ EXAMPLES $ openapi typegen ./openapi.yml > openapi.d.ts ``` -_See code: [src/commands/typegen.ts](https://github.com/openapistack/openapicmd/blob/v2.5.2/src/commands/typegen.ts)_ +_See code: [src/commands/typegen.ts](https://github.com/openapistack/openapicmd/blob/v2.6.0/src/commands/typegen.ts)_ ## `openapi unload` @@ -683,7 +685,7 @@ EXAMPLES $ openapi unload ``` -_See code: [src/commands/unload.ts](https://github.com/openapistack/openapicmd/blob/v2.5.2/src/commands/unload.ts)_ +_See code: [src/commands/unload.ts](https://github.com/openapistack/openapicmd/blob/v2.6.0/src/commands/unload.ts)_ ## Commercial support diff --git a/package-lock.json b/package-lock.json index 840410d..0a6320f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "openapicmd", - "version": "2.6.0-beta.2", + "version": "2.6.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "openapicmd", - "version": "2.6.0-beta.2", + "version": "2.6.0", "license": "MIT", "dependencies": { "@anttiviljami/dtsgenerator": "^3.20.0", diff --git a/package.json b/package.json index 1a29336..9fd37a6 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "openapicmd", "description": "OpenAPI Command Line Tool", - "version": "2.6.0-beta.3", + "version": "2.6.0", "author": "Viljami Kuosmanen ", "bin": { "openapi": "./bin/run.js"