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

Add ability to elide targets for mixins/resources #1231

Merged
merged 1 commit into from
Jun 1, 2022

Conversation

JordonPhillips
Copy link
Contributor

This adds in syntactic sugar that allows modelers to elide targets for members that are inherited from mixins or defined in resources.

This necessarily also adds the ability for a structure to indicate a resource to pull potential targets from.

This is all syntactic sugar for the IDL, so the JSON AST isn't impacted.

This is accomplished by refactoring the code used for mixins to instead be a generic system for applying modifications to a shape after some set of dependencies has been resolved.

Note that we'll also need to update the syntax highlighter in a follow-up pr.

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

@JordonPhillips JordonPhillips requested a review from a team as a code owner May 19, 2022 16:13
docs/source/1.0/guides/migrating-idl-1-to-2.rst Outdated Show resolved Hide resolved
docs/source/1.0/guides/migrating-idl-1-to-2.rst Outdated Show resolved Hide resolved
docs/source/1.0/guides/migrating-idl-1-to-2.rst Outdated Show resolved Hide resolved
docs/source/1.0/spec/core/idl.rst Outdated Show resolved Hide resolved
docs/source/1.0/spec/core/idl.rst Outdated Show resolved Hide resolved
docs/source/1.0/spec/core/idl.rst Show resolved Hide resolved
@JordonPhillips JordonPhillips force-pushed the inherit-from-resource branch 2 times, most recently from 515e976 to 430ef61 Compare May 20, 2022 16:40
Copy link
Member

@mtdowling mtdowling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor changes, but shipit after addressing.

docs/source/1.0/spec/core/idl.rst Outdated Show resolved Hide resolved
docs/source/1.0/spec/core/idl.rst Outdated Show resolved Hide resolved
docs/source/1.0/spec/core/idl.rst Outdated Show resolved Hide resolved
docs/source/1.0/spec/core/idl.rst Outdated Show resolved Hide resolved
docs/source/1.0/spec/core/idl.rst Outdated Show resolved Hide resolved
This adds in syntactic sugar that allows modelers to elide targets
for members that are inherited from mixins or defined in resources.

This necessarily also adds the ability for a structure to indicate
a resource to pull potential targets from.

This is all syntactic sugar for the IDL, so the JSON AST isn't
impacted.

This is accomplished by refactoring the code used for mixins to
instead be a generic system for applying modifications to a shape
after some set of dependencies has been resolved.
@JordonPhillips JordonPhillips merged commit 7bb1758 into idl-2.0 Jun 1, 2022
@mtdowling mtdowling deleted the inherit-from-resource branch June 13, 2022 05:07
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.

3 participants