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

Improve member trait querys and fix JSON bug #199

Merged
merged 1 commit into from
Nov 5, 2019

Conversation

mtdowling
Copy link
Member

This commit fixes a bug in the JSON schema converter where a member was
not being excluded if the shape targeted by the member is marked as
private. To address this in a way that helps other write similar code, I
made an abstractions for querying the effective traits of a member based
on a query object that can be extended in the future. I also moved the
getMemberTrait and findMemberTrait methods to Shape itself rather than
just on MemberShape to make them easier to use in situations where you
want to get traits from a shape in a normalized way across regular
shapes and member shapes.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This commit fixes a bug in the JSON schema converter where a member was
not being excluded if the shape targeted by the member is marked as
private. To address this in a way that helps other write similar code, I
made an abstractions for querying the effective traits of a member based
on a query object that can be extended in the future. I also moved the
getMemberTrait and findMemberTrait methods to Shape itself rather than
just on MemberShape to make them easier to use in situations where you
want to get traits from a shape in a normalized way across regular
shapes and member shapes.
@mtdowling mtdowling requested a review from kstich November 4, 2019 19:56
@mtdowling mtdowling merged commit 14c5140 into master Nov 5, 2019
@mtdowling mtdowling deleted the improve-member-trait-queries branch November 14, 2019 06:51
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.

2 participants