diff --git a/tests/schemas/test_openapi.py b/tests/schemas/test_openapi.py index daa035a3f..8a0cea5e9 100644 --- a/tests/schemas/test_openapi.py +++ b/tests/schemas/test_openapi.py @@ -789,6 +789,11 @@ class TestOperationIntrospection(TestCase): '$ref': '#/components/schemas/Request' } }, + 'application/json-patch+json': { + 'schema': { + '$ref': '#/components/schemas/Request' + } + }, 'application/x-www-form-urlencoded': { 'schema': { '$ref': '#/components/schemas/Request' diff --git a/tests/test_metadata.py b/tests/test_metadata.py index 4abc0fc07..f45ec05df 100644 --- a/tests/test_metadata.py +++ b/tests/test_metadata.py @@ -39,6 +39,7 @@ class TestMetadata: ], 'parses': [ 'application/json', + 'application/json-patch+json', 'application/x-www-form-urlencoded', 'multipart/form-data' ] @@ -103,6 +104,7 @@ class TestMetadata: ], 'parses': [ 'application/json', + 'application/json-patch+json', 'application/x-www-form-urlencoded', 'multipart/form-data' ], @@ -366,6 +368,7 @@ class TestModelSerializerMetadata(TestCase): ], 'parses': [ 'application/json', + 'application/json-patch+json', 'application/x-www-form-urlencoded', 'multipart/form-data' ],