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 resource properties structure and validation #1213

Merged
merged 22 commits into from
Aug 2, 2022
Merged

Conversation

DavidOgunsAWS
Copy link
Contributor

@DavidOgunsAWS DavidOgunsAWS commented May 4, 2022

Description of changes:
Adds resource properties structure, new traits, and new validation.

This PR is a combination of the following:

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

@DavidOgunsAWS DavidOgunsAWS requested a review from a team as a code owner May 4, 2022 07:23
@DavidOgunsAWS DavidOgunsAWS changed the title Add resource properties definiteion Add resource properties structure and validation May 4, 2022
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.

Didn't finish a full reiew yet, but publishing comments for smithy-model and json schema now.

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.

Is member elision syntax for resource properties and the for modifier for structures to lexically bind structure member elision to a resource documented anywhere?

Ah, yes, it was preemptively documented when it was added.

docs/source/1.0/spec/core/model.rst Outdated Show resolved Hide resolved
docs/source/1.0/spec/core/model.rst Outdated Show resolved Hide resolved
docs/source/1.0/spec/core/model.rst Outdated Show resolved Hide resolved
docs/source/1.0/spec/core/model.rst Outdated Show resolved Hide resolved
docs/source/1.0/spec/core/model.rst Outdated Show resolved Hide resolved
docs/source/1.0/spec/core/traits.rst Outdated Show resolved Hide resolved
docs/source/1.0/spec/core/traits.rst Outdated Show resolved Hide resolved
docs/source/1.0/spec/core/traits.rst Outdated Show resolved Hide resolved
docs/source/1.0/spec/core/traits.rst Outdated Show resolved Hide resolved
docs/source/1.0/spec/core/model.rst Outdated Show resolved Hide resolved
@mtdowling
Copy link
Member

Looks like we need to update the IDL parser too so that it can use type elision with resource properties: https://github.com/awslabs/smithy/blob/idl-2.0/smithy-model/src/main/java/software/amazon/smithy/model/loader/SetResourceBasedTargets.java#L74

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.

Let's squash these intermediate commits before merging

@DavidOgunsAWS DavidOgunsAWS merged commit f3dc2d1 into idl-2.0 Aug 2, 2022
mtdowling added a commit that referenced this pull request Aug 10, 2022
* Resource properties and AWS tagging traits (unstable) and validation added. CfnConverter updated.

Co-authored-by: Michael Dowling <[email protected]>
@mtdowling mtdowling deleted the properties branch August 10, 2022 17:25
mtdowling added a commit that referenced this pull request Aug 10, 2022
* Resource properties and AWS tagging traits (unstable) and validation added. CfnConverter updated.

Co-authored-by: Michael Dowling <[email protected]>
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