diff --git a/package.json b/package.json index e95b2abe..19bc2485 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "src/templates/**/*.ts" ], "scripts": { - "clean": "rimraf ./dist ./test/result ./coverage", + "clean": "rimraf ./dist ./test/result ./coverage ./samples/examples", "build": "rollup --config", "run": "node ./test/index.js", "test": "jest", diff --git a/samples/README.md b/samples/README.md index a9f732a4..c99a7bfe 100644 --- a/samples/README.md +++ b/samples/README.md @@ -21,9 +21,9 @@ And used the following generators with their default options: #Results -
| openapi-typscript-codegen | aurelia | @@ -35,7 +35,7 @@ And used the following generators with their default options:||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Supports OpenApi v2 specification | ✅ | ✅ | @@ -45,7 +45,7 @@ And used the following generators with their default options:✅ | ✅ | |||||||||
| Supports OpenApi v3 specification | ✅ | ❌ | @@ -55,17 +55,17 @@ And used the following generators with their default options:❌ | ❌ | |||||||||
| Supports authentication | -✅ Bearer token | +✅ Bearer token |
❌ | -✅ Bearer token | -✅ Bearer token | -✅ Bearer token | -✅ Bearer token | -✅ Bearer token | +✅ Bearer token |
+ ✅ Bearer token |
+ ✅ Bearer token |
+ ✅ Bearer token |
+ ✅ Bearer token |
| Strongly typed models | ✅ | ✅ | @@ -73,29 +73,29 @@ And used the following generators with their default options:✅ | ✅ | ✅ | -✅ Using classes instead of simple interfaces | +✅ Using classes instead of simple interfaces |
||||||
| Strongly typed enums | ✅ | -✅ No enum is exported | +✅ No enum is exported |
✅ | -✅ Odd cast to <any> |
- ✅ Odd cast to <any> |
- ✅ Odd cast to <any> |
- ✅ Odd cast to <any> |
+ ✅ Odd cast to <any> |
+ ✅ Odd cast to <any> |
+ ✅ Odd cast to <any> |
+ ✅ Odd cast to <any> |
|
| Models and services exported as individual files | ✅ | -❌ All models inside one file | +❌ All models inside one file |
✅ | ✅ | -❌ All models and services inside one file | +❌ All models and services inside one file |
✅ | -❌ All models and services inside one file | +❌ All models and services inside one file |
|||
| Index file that exports all services and models | ✅ | ✅ | @@ -105,7 +105,7 @@ And used the following generators with their default options:✅ | ❌ | |||||||||
| Service returns typed result | ✅ | ✅ | @@ -115,17 +115,17 @@ And used the following generators with their default options:✅ | ✅ | |||||||||
| Service supports sending and receiving binary content | ✅ | ✅ | ✅ | -❌ Passing file as application/octet-stream | -❌ Passing file as application/octet-stream | +❌ Passing file as application/octet-stream |
+ ❌ Passing file as application/octet-stream |
✅ | ✅ | ||||
| Models and services contain inline documentation | ✅ | ❌ | @@ -135,15 +135,15 @@ And used the following generators with their default options:❌ | ❌ | |||||||||
| Framework agnostic | ✅ | -❌ No, using aurelia |
- ❌ No, using inversify and rxjs |
- ❌ No, using angular |
- ✅ But depends on portable-fetch |
- ❌ No, using jquery |
- ❌ No, can only be used with NodeJS http |
+ ❌ No, using aurelia |
+ ❌ No, using inversify and rxjs |
+ ❌ No, using angular |
+ ✅ But depends on portable-fetch |
+ ❌ No, using jquery |
+ ❌ No, can only be used with NodeJS http |