-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
jsonref removes existing key-values if reference is present #60
Comments
This is expected, and is how the json reference spec is written. If you desire the two objects (the referenced object and the json reference object) to be merged, there is the EDIT:
JSON Schema diverged from the original JSON Reference spec (especially in more recent iterations.) Using the mentioned |
Shouldn't you be using this schema? {
"foo": {
"allOf": [{"$ref": "#/def/url"}],
"title": "something additional that should not be removed"
},
"def": {
"url": {
"pattern": "pattern",
"type": "string"
}
}
} |
Given the schema:
When loading it with
jsonref.loads
, the keytitle
is removed:Outputs:
But I'd expect
Is this expected?
Thanks!
The text was updated successfully, but these errors were encountered: