diff --git a/README.md b/README.md index dfea185c..5c4a2ff2 100644 --- a/README.md +++ b/README.md @@ -277,4 +277,4 @@ OpenAPI.TOKEN = 'some-bearer-token'; ### Compare to other libraries -https://htmlpreview.github.io/?https://github.com/ferdikoomen/openapi-typescript-codegen/blob/master/samples/README.html +[samples/README.html](https://htmlpreview.github.io/?https://github.com/ferdikoomen/openapi-typescript-codegen/blob/master/samples/README.html) diff --git a/package.json b/package.json index 19bc2485..0853e084 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openapi-typescript-codegen", - "version": "0.4.5", + "version": "0.4.6", "description": "NodeJS library that generates Typescript or Javascript clients based on the OpenAPI specification.", "author": "Ferdi Koomen", "homepage": "https://github.com/ferdikoomen/openapi-typescript-codegen", diff --git a/samples/codegen.sh b/samples/codegen.sh index e1ef1264..cf9574df 100755 --- a/samples/codegen.sh +++ b/samples/codegen.sh @@ -20,7 +20,3 @@ echo v3/openapi-typescript-codegen && time node ../bin/index.js --input v3/spec. yarn install yarn run build - -cd examples -find . -type f ! -iname "*.ts" -delete -cd ../ diff --git a/samples/README.html b/samples/index.html similarity index 92% rename from samples/README.html rename to samples/index.html index 1addbbef..bff0d41f 100644 --- a/samples/README.html +++ b/samples/index.html @@ -8,6 +8,11 @@
V3 version sends data as application/octet-stream instead of application/x-www-form-urlencoded
V3 version sends data as application/octet-stream instead of application/x-www-form-urlencoded
Requires portable-fetch
Requires bluebird
Errors when compiling: PetApi.ts:147:30 - error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'
Errors when compiling: pet.service.ts:312:159 - error TS2304: Cannot find name 'body'
Errors when compiling: pet.service.ts:528:26 - error TS1345: An expression of type 'void' cannot be tested for truthiness
Errors when compiling: api.ts:2276:67 - error TS2300: Duplicate identifier 'username'
Errors when compiling: PetApi.ts:25:12 - error TS2322: Type 'null' is not assignable to type 'JQueryAjaxSettings | undefined'
Errors when compiling: api.ts:1631:45 - error TS2694: Namespace '"http"' has no exported member 'ClientResponse'