-
-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
Given the schema:
{
"foo": {
"$ref": "#/def/url",
"title": "something additional that should not be removed"
},
"def": {
"url": {
"pattern": "pattern",
"type": "string"
}
}
}
When loading it with jsonref.loads
, the key title
is removed:
import jsonref
loaded = jsonref.loads('''
{
"foo": {
"$ref": "#/def/url",
"title": "something additional that should not be removed"
},
"def": {
"url": {
"pattern": "pattern",
"type": "string"
}
}
}
''')
loaded
Outputs:
{'foo': {'pattern': 'pattern', 'type': 'string'},
'def': {'url': {'pattern': 'pattern', 'type': 'string'}}}
But I'd expect
{'foo': {'pattern': 'pattern', 'type': 'string', 'title': 'something additional that should not be removed'},
'def': {'url': {'pattern': 'pattern', 'type': 'string'}}}
Is this expected?
Thanks!
Metadata
Metadata
Assignees
Labels
No labels