-
Notifications
You must be signed in to change notification settings - Fork 221
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
Conversation
smithy-model/src/main/java/software/amazon/smithy/model/knowledge/MemberPropertyIndex.java
Outdated
Show resolved
Hide resolved
smithy-model/src/main/java/software/amazon/smithy/model/knowledge/MemberPropertyIndex.java
Outdated
Show resolved
Hide resolved
smithy-model/src/main/java/software/amazon/smithy/model/knowledge/MemberPropertyIndex.java
Outdated
Show resolved
Hide resolved
smithy-model/src/main/java/software/amazon/smithy/model/knowledge/MemberPropertyIndex.java
Outdated
Show resolved
Hide resolved
...oftware/amazon/smithy/model/validation/validators/ResourceOperationInputOutputValidator.java
Outdated
Show resolved
Hide resolved
...oftware/amazon/smithy/model/validation/validators/ResourceOperationInputOutputValidator.java
Outdated
Show resolved
Hide resolved
...oftware/amazon/smithy/model/validation/validators/ResourceOperationInputOutputValidator.java
Outdated
Show resolved
Hide resolved
...oftware/amazon/smithy/model/validation/validators/ResourceOperationInputOutputValidator.java
Outdated
Show resolved
Hide resolved
...oftware/amazon/smithy/model/validation/validators/ResourceOperationInputOutputValidator.java
Outdated
Show resolved
Hide resolved
smithy-model/src/main/java/software/amazon/smithy/model/traits/PropertyTrait.java
Outdated
Show resolved
Hide resolved
...-model/src/main/java/software/amazon/smithy/model/validation/testrunner/SmithyTestSuite.java
Outdated
Show resolved
Hide resolved
...-model/src/main/java/software/amazon/smithy/model/validation/testrunner/SmithyTestSuite.java
Outdated
Show resolved
Hide resolved
smithy-model/src/test/java/software/amazon/smithy/model/ErrorsFileTest.java
Outdated
Show resolved
Hide resolved
smithy-model/src/main/java/software/amazon/smithy/model/knowledge/OperationIndex.java
Outdated
Show resolved
Hide resolved
smithy-model/src/main/java/software/amazon/smithy/model/knowledge/PropertyBindingIndex.java
Outdated
Show resolved
Hide resolved
smithy-model/src/main/java/software/amazon/smithy/model/knowledge/PropertyBindingIndex.java
Outdated
Show resolved
Hide resolved
smithy-model/src/main/java/software/amazon/smithy/model/knowledge/PropertyBindingIndex.java
Show resolved
Hide resolved
smithy-model/src/main/java/software/amazon/smithy/model/knowledge/PropertyBindingIndex.java
Outdated
Show resolved
Hide resolved
smithy-model/src/main/java/software/amazon/smithy/model/knowledge/PropertyBindingIndex.java
Show resolved
Hide resolved
There was a problem hiding this 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.
smithy-model/src/main/java/software/amazon/smithy/model/knowledge/PropertyBindingIndex.java
Outdated
Show resolved
Hide resolved
smithy-model/src/main/java/software/amazon/smithy/model/knowledge/PropertyBindingIndex.java
Outdated
Show resolved
Hide resolved
smithy-model/src/main/java/software/amazon/smithy/model/knowledge/PropertyBindingIndex.java
Outdated
Show resolved
Hide resolved
...ain/java/software/amazon/smithy/model/validation/validators/ResourceIdentifierValidator.java
Outdated
Show resolved
Hide resolved
...ain/java/software/amazon/smithy/model/validation/validators/ResourceIdentifierValidator.java
Outdated
Show resolved
Hide resolved
...resources/software/amazon/smithy/aws/traits/errorfiles/tagging/valid-tag-service-wide.smithy
Show resolved
Hide resolved
...test/resources/software/amazon/smithy/aws/traits/errorfiles/tagging/invalid-tag-types.errors
Outdated
Show resolved
Hide resolved
...smithy/aws/traits/errorfiles/tagging/invalid-tag-enabled-service-no-taggable-resource.errors
Outdated
Show resolved
Hide resolved
.../src/main/java/software/amazon/smithy/aws/cloudformation/schema/fromsmithy/CfnConverter.java
Outdated
Show resolved
Hide resolved
...dformation/src/main/java/software/amazon/smithy/aws/cloudformation/schema/model/Tagging.java
Outdated
Show resolved
Hide resolved
smithy-aws-traits/src/main/java/software/amazon/smithy/aws/traits/tagging/TaggableTrait.java
Outdated
Show resolved
Hide resolved
smithy-aws-traits/src/main/java/software/amazon/smithy/aws/traits/tagging/TaggableTrait.java
Outdated
Show resolved
Hide resolved
smithy-aws-traits/src/main/java/software/amazon/smithy/aws/traits/tagging/TaggableTrait.java
Outdated
Show resolved
Hide resolved
smithy-aws-traits/src/main/java/software/amazon/smithy/aws/traits/tagging/AwsTagIndex.java
Show resolved
Hide resolved
...-traits/src/main/java/software/amazon/smithy/aws/traits/tagging/ServiceTaggingValidator.java
Show resolved
Hide resolved
smithy-aws-traits/src/main/resources/META-INF/smithy/aws.api.smithy
Outdated
Show resolved
Hide resolved
smithy-aws-traits/src/main/java/software/amazon/smithy/aws/traits/tagging/AwsTagIndex.java
Show resolved
Hide resolved
There was a problem hiding this 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.
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 |
c1a9ea9
to
75e323d
Compare
75e323d
to
5269dd5
Compare
...hy-aws-traits/src/main/java/software/amazon/smithy/aws/traits/tagging/TaggableApiConfig.java
Outdated
Show resolved
Hide resolved
...hy-aws-traits/src/main/java/software/amazon/smithy/aws/traits/tagging/TaggableApiConfig.java
Show resolved
Hide resolved
...hy-aws-traits/src/main/java/software/amazon/smithy/aws/traits/tagging/TaggingShapeUtils.java
Outdated
Show resolved
Hide resolved
smithy-aws-traits/src/main/java/software/amazon/smithy/aws/traits/tagging/AwsTagIndex.java
Show resolved
Hide resolved
Co-authored-by: Michael Dowling <[email protected]>
Co-authored-by: Michael Dowling <[email protected]>
Co-authored-by: Michael Dowling <[email protected]>
Co-authored-by: Michael Dowling <[email protected]>
…oader/invalid/properties-v2-only.smithy Co-authored-by: Michael Dowling <[email protected]>
...hy-aws-traits/src/main/java/software/amazon/smithy/aws/traits/tagging/TaggableApiConfig.java
Outdated
Show resolved
Hide resolved
...hy-aws-traits/src/main/java/software/amazon/smithy/aws/traits/tagging/TaggableApiConfig.java
Show resolved
Hide resolved
There was a problem hiding this 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
* Resource properties and AWS tagging traits (unstable) and validation added. CfnConverter updated. Co-authored-by: Michael Dowling <[email protected]>
* Resource properties and AWS tagging traits (unstable) and validation added. CfnConverter updated. Co-authored-by: Michael Dowling <[email protected]>
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.