Closed codeasashu closed 5 years ago
Closing this as this strategy may not be good. Examples should have exaplanatory names as dict keys so they can be easily referenced to postman from swagger. For example, example body for "Invalid User" makes more sense than "text/html" example.
Currently, the examples are documented as
dict
without a header check. This is not ideal where the response header hasContent-Type: text/plain
orContent-Type: text/html
headers.Make sure to convert the examples to plaintexts with abovesaid headers are found in response content-type