You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When having nested JSON objects I'd like be able to have singer.resolve_schema_references() resolve all of my definitions. In the example_parsed file below you'll notice that the members array still has references for "$ref": "#/definitions/user" . I want user to be resolved here instead of still referenced.
Example input and output below with code.
Code:
import singer
import json
with open("example.json") as f:
old_schema = json.load(f)
new_schema = singer.resolve_schema_references(old_schema)
with open("example_parsed.json", "w") as w:
w.write(json.dumps(new_schema, indent=4))
Great library! Thank you
When having nested JSON objects I'd like be able to have
singer.resolve_schema_references()
resolve all of my definitions. In the example_parsed file below you'll notice that themembers
array still has references for"$ref": "#/definitions/user"
. I want user to be resolved here instead of still referenced.Example input and output below with code.
Code:
example.json
example_parsed.json
The text was updated successfully, but these errors were encountered: