Skip to content

Conversation

leebyron
Copy link
Contributor

This is a rebased and updated version of @tgriesser's #199. I further extended it to completely remove the side-effectful mutation of Interface types rather than just deferring that mutation to schema creation time.

This introduces a breaking change to the Type System API. Now, any individual Interface type does not have the required information to answer getPossibleTypes or isPossibleType without knowing the other types in the Schema. These methods were moved to the Schema API, accepting the abstract type as the first parameter.

This also introduces a breaking change to the type comparator functions: isTypeSubTypeOf and doTypesOverlap which now require a Schema as a first argument.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.06%) to 99.322% when pulling f3c80d8 on tgriesser-schema-types into 43992e3 on master.

@leebyron leebyron force-pushed the tgriesser-schema-types branch from f3c80d8 to 2330fef Compare March 23, 2016 06:06
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.06%) to 99.322% when pulling 2330fef on tgriesser-schema-types into 1de281b on master.

@leebyron leebyron force-pushed the tgriesser-schema-types branch from 2330fef to be3ee64 Compare March 23, 2016 06:47
@coveralls
Copy link

Coverage Status

Coverage increased (+0.003%) to 99.42% when pulling be3ee64 on tgriesser-schema-types into 2d833ad on master.

@leebyron leebyron force-pushed the tgriesser-schema-types branch from be3ee64 to 5621af2 Compare March 23, 2016 07:06
@coveralls
Copy link

Coverage Status

Coverage increased (+0.003%) to 99.42% when pulling 5621af2 on tgriesser-schema-types into 3f6a7f4 on master.

This is a rebased and updated version of @tgriesser's #199. I further extended it to completely remove the side-effectful mutation of Interface types rather than just deferring that mutation to schema creation time.

This introduces a *breaking* change to the Type System API. Now, any individual Interface type does not have the required information to answer `getPossibleTypes` or `isPossibleType` without knowing the other types in the Schema. These methods were moved to the Schema API, accepting the abstract type as the first parameter.

This also introduces a *breaking* change to the type comparator functions: `isTypeSubTypeOf` and `doTypesOverlap` which now require a Schema as a first argument.
@leebyron leebyron force-pushed the tgriesser-schema-types branch from 857339a to 6a1f23e Compare March 24, 2016 22:36
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 6a1f23e on tgriesser-schema-types into * on master*.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.003%) to 99.421% when pulling 6a1f23e on tgriesser-schema-types into a781b55 on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants