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

SIB decorates hash / array by underlying type only, not schema #54

Merged
merged 2 commits into from
Jul 25, 2018

Conversation

notEthan
Copy link
Owner

no longer checking schema.describes_hash? / schema.describes_array? on SchemaInstanceBase initialize to decide to extend with SchemaInstanceBaseHash / SchemaInstanceBaseArray.

…n SchemaInstanceBase initialize to decide to extend with SchemaInstanceBaseHash / SchemaInstanceBaseArray.

I think it doesn't make sense for this to check the schema. although it is a bit unexpected for a SIB instance for a schema the descirbes an array to have hash methods, it is better that SIB just wrap the node per its type.

more often the schema doesn't specify its type, and it is not desirable for scorpio to fail to decorate an instance as a hash due to a more open ended schema.
notEthan added a commit that referenced this pull request Jul 25, 2018
@notEthan notEthan merged commit 1b83d37 into master Jul 25, 2018
@notEthan notEthan deleted the sib_typelike branch July 25, 2018 19:10
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.

1 participant