8000 Don't serialize broken schemas · core-api/python-client@337a22c · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Mar 18, 2019. It is now read-only.

Commit 337a22c

Browse files
committed
Don't serialize broken schemas
1 parent 6dd8ede commit 337a22c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

coreapi/codecs/corejson.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,8 @@ def _document_to_primative(node, base_url=None):
156156
ret['required'] = node.required
157157
if node.location:
158158
ret['location'] = node.location
159-
if node.schema:
160-
ret['schema'] = node.schema
159+
#if node.schema:
160+
# ret['schema'] = node.schema
161161
return ret
162162

163163
elif isinstance(node, Object):

0 commit comments

Comments
 (0)
0