Manweill / swagger-axios-codegen

swagger client to use axios and typescript
MIT License
306 stars 83 forks source link

Fix array in response bodys #43

Closed LucaDe closed 5 years ago

LucaDe commented 5 years ago

See my comment in #37

Manweill commented 5 years ago

@LucaDe bad code

var body = p.schema
        ? p.schema.type === 'array'
          ? `[...params['${paramName}']]`
          : `...params['${paramName}']`
        : `'${p.name}':params['${paramName}']`