Hi,
I'm using swagger codegen v2.0 to generate python client. 

I've seen examples from swagger documentations about returning customized 
objects for erroneous responses. 

'200':
  description: a pet to be returned
  schema:
    $ref: '#/definitions/Pet'default:
  description: Unexpected error
  schema:
    $ref: '#/definitions/ErrorModel'


However,  the generated code always raise ApiException for response code 
beyond 200-206.

if r.status not in range(200, 206):
    raise ApiException(http_resp=r)

return r 

Do I miss anything here?

Thanks,
Manchun

-- 
You received this message because you are subscribed to the Google Groups 
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to