diff --git a/rest_framework/parsers.py b/rest_framework/parsers.py index fc4eb1428..947529301 100644 --- a/rest_framework/parsers.py +++ b/rest_framework/parsers.py @@ -67,6 +67,13 @@ class JSONParser(BaseParser): raise ParseError('JSON parse error - %s' % str(exc)) +class OAS3JSONParser(JSONParser): + """ + Parses OpenAPI+JSON-serialized data. + """ + media_type = 'application/openapi+json' + + class FormParser(BaseParser): """ Parser for form data.