We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1652030 commit 133d773Copy full SHA for 133d773
rest_framework_json_api/parsers.py
@@ -116,10 +116,12 @@ def parse(self, stream, media_type=None, parser_context=None):
116
117
request = parser_context.get('request')
118
119
+ # Sanity check
120
+ if not isinstance(data, dict):
121
+ raise ParseError('Received data is not a valid JSONAPI Resource Identifier Object')
122
+
123
# Check for inconsistencies
124
if request.method in ('PUT', 'POST', 'PATCH'):
- if not isinstance(data, dict):
- raise ParseError('Received data is not a valid JSONAPI Resource Identifier Object')
125
resource_name = utils.get_resource_name(
126
parser_context, expand_polymorphic_types=True)
127
if isinstance(resource_name, str):
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments