diff --git a/samples/README.html b/samples/README.html new file mode 100644 index 00000000..0eeb3724 --- /dev/null +++ b/samples/README.html @@ -0,0 +1,188 @@ + + +
+ + + + + + ++ Depending on which generator you use, you will see different output. For instance: + Different ways of generating models, services, level of quality, HTTP client, etc. + I've compiled a list below with the results per area and how they compare + against the openapi-typescript-codegen. +
+| + | openapi-typscript-codegen | +aurelia | +inversify | +angular | +fetch | +jquery | +node | +
|---|---|---|---|---|---|---|---|
| Supports OpenApi v2 specification | +✅ | +✅ | +✅ | +✅ | +✅ | +✅ | +✅ | +
| Supports OpenApi v3 specification | +✅ | +❌ | +❌ | +✅ | +✅ | +❌ | +❌ | +
| Supports authentication | +✅ | +❌ | +✅ | +✅ | +✅ | +✅ | +✅ | +
| Strongly typed models | +✅ | +✅ | +✅ | +✅ | +✅ | +✅ | +✅ | +
| Strongly typed enums | +✅ | +✅ | +✅ | +✅ | +✅ | +✅ | +✅ | +
| Models and services exported as individual files | +✅ | +❌ | +✅ | +✅ | +❌ | +✅ | +❌ | +
| Index file that exports all services and models | +✅ | +✅ | +❌ | +✅ | +✅ | +✅ | +❌ | +
| Service returns typed result | +✅ | +✅ | +✅ | +✅ | +❌ | +✅ | +✅ | +
| Service supports sending and receiving binary content | +✅ | +✅ | +✅ | +❌ | +❌ | +✅ | +✅ | +
| Models and services contain inline documentation | +✅ | +✅ | +✅ | +✅ | +✅ | +✅ | +✅ | +
| Framework agnostic | +✅ | +❌ | +❌ | +❌ | +✅ | +❌ | +❌ | +
| Generated size (typescript) | +30Kb | +30Kb | +30Kb | +30Kb | +30Kb | +30Kb | +30Kb | +
| Build size (javascript) | +30Kb | +30Kb | +30Kb | +30Kb | +30Kb | +30Kb | +30Kb | +
| - | openapi-typscript-codegen | -aurelia | -inversify | -angular | -fetch | -jquery | -node | -
|---|---|---|---|---|---|---|---|
| Supports OpenApi v2 specification | -✅ | -✅ | -✅ | -✅ | -✅ | -✅ | -✅ | -
| Supports OpenApi v3 specification | -✅ | -❌ | -❌ | -✅ | -✅ | -❌ | -❌ | -
| Supports authentication | -✅ Bearer token |
- ❌ | -✅ Bearer token |
- ✅ Bearer token |
- ✅ Bearer token |
- ✅ Bearer token |
- ✅ Bearer token |
-
| Strongly typed models | -✅ | -✅ | -✅ | -✅ | -✅ | -✅ | -✅ Using classes instead of simple interfaces |
-
| Strongly typed enums | -✅ | -✅ No enum is exported |
- ✅ | -✅ 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 and services inside one file |
- ✅ | -❌ All models and services inside one file |
-
| Index file that exports all services and models | -✅ | -✅ | -❌ | -✅ | -✅ | -✅ | -❌ | -
| Service returns typed result | -✅ | -✅ | -✅ | -✅ | -❌ | -✅ | -✅ | -
| Service supports sending and receiving binary content | -✅ | -✅ | -✅ | -❌ Passing file as application/octet-stream |
- ❌ Passing file as application/octet-stream |
- ✅ | -✅ | -
| Models and services contain inline documentation | -✅ | -❌ | -❌ | -❌ | -❌ | -❌ | -❌ | -
| 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 |
-