Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

response data is always bonded to 200 #26

Closed
kemingy opened this issue Oct 25, 2019 · 2 comments
Closed

response data is always bonded to 200 #26

kemingy opened this issue Oct 25, 2019 · 2 comments
Projects

Comments

@kemingy
Copy link
Owner

kemingy commented Oct 25, 2019

Response data declared in validate(resp=Response) is bonded to status code 200 by default.

@kemingy kemingy added bug Something isn't working and removed bug Something isn't working labels Oct 25, 2019
@kemingy kemingy added this to To do in roadmap Oct 25, 2019
@kemingy
Copy link
Owner Author

kemingy commented Nov 27, 2019

Usually, only response with code 200 may have JSON body.

Other responses with code 4xx should use text body.

@kemingy
Copy link
Owner Author

kemingy commented Jan 7, 2020

Usually, only response with code 200 may have JSON body.

Other responses with code 4xx should use text body.

That's wrong. check 0b01001001/spectree#1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
roadmap
  
Done
Development

No branches or pull requests

1 participant