Skip to content
Snippets Groups Projects
Commit 6c8240de authored by Jorrit Schaap's avatar Jorrit Schaap
Browse files

TMSS-000: for the demo yield resolved schema so the frontend can handle it.

parent b4d3e5e7
No related branches found
No related tags found
No related merge requests found
......@@ -72,4 +72,7 @@ class JSONEditorField(serializers.JSONField):
self.style = {'template': 'josdejong_jsoneditor_widget.html',
'schema': json.dumps(schema)}
if self.parent.context['request'].accepted_media_type == 'application/json':
return super().to_representation(json_utils.resolved_refs(value))
return super().to_representation(value)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment