I've used the standard petshop examples from OpenAPI:

And used the following generators with their default options:

openapi-typescript-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 ⚠️
Details

V3 version sends data as application/octet-stream instead of application/x-www-form-urlencoded

⚠️
Details

V3 version sends data as application/octet-stream instead of application/x-www-form-urlencoded

Models and services contain inline documentation
Framework agnostic ⚠️
Details

Requires portable-fetch

⚠️
Details

Requires bluebird

Compiles in strict mode without issues
Details

Errors when compiling: PetApi.ts:147:30 - error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'

Details

Errors when compiling: pet.service.ts:312:159 - error TS2304: Cannot find name 'body'

Details

Errors when compiling: pet.service.ts:528:26 - error TS1345: An expression of type 'void' cannot be tested for truthiness

Details

Errors when compiling: api.ts:2276:67 - error TS2300: Duplicate identifier 'username'

Details

Errors when compiling: PetApi.ts:25:12 - error TS2322: Type 'null' is not assignable to type 'JQueryAjaxSettings | undefined'

Details

Errors when compiling: api.ts:1631:45 - error TS2694: Namespace '"http"' has no exported member 'ClientResponse'

Generated size (typescript) 30KB 29KB 37KB 63KB 85KB 57KB 65KB
Build size (javascript, not minimized) 17KB 16KB 22KB 36KB 48KB 37KB 53KB
Generation time 0.2s 0.7s 0.7s 1.4s 1.1s 0.7s 0.7s