swagger-api/swagger-codegen

[Go] Generated client code doesn't return specified error objects for non-2xx response codes

Ouverte

#2 296 ouverte le 2 mars 2016

 (2 commentaires) (0 réaction) (0 personne assignée)HTML (5 474 forks)batch import
Client: GoEnhancement: Generalhelp wanted

Métriques du dépôt

Stars
 (12 701 étoiles)
Métriques de merge PR
 (Métriques PR en attente)

Description

Currently the generated code (DefaultApi) does return an error code if a non-2xx HTTP condition occurs (ie an error), but it ignores what the swagger says it should produce. E.g. if the swagger states that a 404 returns a petNotFoundError object, currently the Go code generator ignores this fact.

Guide contributeur