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

Allow the xmlFlattened trait to be on members #191

Merged
merged 2 commits into from
Oct 24, 2019

Conversation

JordonPhillips
Copy link
Contributor

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

@@ -148,7 +148,7 @@ structure xmlAttribute {}

/// Moves serialized collection members from their collection element to that of
/// the collection's container.
@trait(selector: "collection")
@trait(selector: ":each(collection, structure > :test(member > collection))")
Copy link
Member

Choose a reason for hiding this comment

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

It would be simpler to do:

:test(collection, member:of(structure) > collection)

Copy link
Contributor

@kstich kstich left a comment

Choose a reason for hiding this comment

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

This should also be updated in the XML traits spec page.

docs/source/spec/xml.rst Outdated Show resolved Hide resolved
@JordonPhillips JordonPhillips requested a review from kstich October 22, 2019 21:04
@JordonPhillips JordonPhillips merged commit 8884b48 into smithy-lang:master Oct 24, 2019
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