Skip to content
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

Resolve references in anyOf schema keys. #93

Merged
merged 1 commit into from Jan 3, 2019

Conversation

joshtemple
Copy link
Contributor

I found that the resolve_schema_references method doesn't expand JSON schema references in anyOf blocks. I added a new SchemaKey to make sure we recursively expand those $ref blocks.

Are there other keys we should also think about (e.g. allOf, oneOf)? Is there a more generalized approach used elsewhere in Singer for navigating the tree we should consider?

@KAllan357
Copy link
Contributor

I think a better approach might be to figure out exactly how the RefResolver in jsonschema works.

In the meantime I think this change makes sense and we can continue to add additional support on an as needed basis.

@KAllan357 KAllan357 merged commit 1659e33 into singer-io:master Jan 3, 2019
@KAllan357
Copy link
Contributor

Thanks 👍

@KAllan357
Copy link
Contributor

Released in v5.4.1

@joshtemple joshtemple deleted the hotfix/any-of-schema-key branch January 4, 2019 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants