influxdata / oats

An OpenAPI to TypeScript generator.
MIT License
13 stars 6 forks source link

default to returning a string #9

Closed drdelambre closed 4 years ago

drdelambre commented 4 years ago

currently, if a response isn't one of three types, the response handler just returns undefined for the response's data property. The API supports more than those three types, so i defaulted to letting it all roll into string processing if not the first two.

Lemme know if whitelisting the type would be better, i'm indifferent

hoorayimhelping commented 4 years ago

solid, and great description!