swagger-api/swagger-codegen

Model Mapping of 400/500 error code

Open

#2,602 opened on Apr 14, 2016

View on GitHub
 (7 comments) (10 reactions) (0 assignees)HTML (12,701 stars) (5,474 forks)batch import
Client: JavaEnhancement: FeatureIssue: Workaround availablehelp wanted

Description

I have generated java client for my rest api. I have specified models for error responses 400 and 500 also but always i get error back as APIException and whole json is copied as string in ApiException.

Has anybody faces this issue and happen to resolve it?

Contributor guide

Model Mapping of 400/500 error code · swagger-api/swagger-codegen#2602 | Good First Issue