mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-28 00:49:49 +03:00
OASJSONParser
This commit is contained in:
parent
559088463b
commit
1a0c916b12
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user