zulip/zerver
orientor e989c87a18 openapi: Fix response validation bug.
Currently there are no checks in validate_against_openapi_schema
to check whether the `content` it received actually matched with
the `response code`. For example during testing if a certain endpoint
was returning 400 but it was expected to return 200, then it would
pass schema validation as it would only have `msg` and `result` keys.
Add this validation and fix the wrong response returning points.
2020-06-10 16:45:36 -07:00
..
data_import python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
lib python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
management python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
migrations python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
openapi openapi: Fix response validation bug. 2020-06-10 16:45:36 -07:00
templatetags python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
tests openapi: Add response example validation. 2020-06-10 15:45:50 -07:00
tornado python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
views python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
webhooks python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
worker python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
__init__.py
apps.py python: Convert assignment type annotations to Python 3.6 style. 2020-04-22 11:02:32 -07:00
context_processors.py python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
decorator.py python: Convert "".format to Python 3.6 f-strings. 2020-06-08 15:31:20 -07:00
filters.py cleanup: Delete leading newlines. 2019-08-06 23:29:11 -07:00
forms.py python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
logging_handlers.py error logging: Inline add_deployment_metadata. 2020-05-06 16:29:53 -07:00
middleware.py python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
models.py python: Convert percent formatting to Python 3.6 f-strings. 2020-06-10 15:02:09 -07:00
signals.py python: Convert "".format to Python 3.6 f-strings. 2020-06-08 15:31:20 -07:00