-
Notifications
You must be signed in to change notification settings - Fork 218
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow the xmlFlattened trait to be on members
- Loading branch information
1 parent
2150120
commit ad470cd
Showing
4 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
37 changes: 37 additions & 0 deletions
37
.../src/test/resources/software/amazon/smithy/model/errorfiles/validators/xml-flattened.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"smithy": "0.4.0", | ||
"ns.foo": { | ||
"shapes": { | ||
"FlatCollection": { | ||
"type": "list", | ||
"member": { | ||
"target": "smithy.api#String" | ||
}, | ||
"smithy.api#xmlFlattened": true | ||
}, | ||
"NotFlatCollection": { | ||
"type": "list", | ||
"member": { | ||
"target": "smithy.api#String" | ||
} | ||
}, | ||
"ValidStructure1": { | ||
"type": "structure", | ||
"members": { | ||
"flatList": { | ||
"target": "FlatCollection" | ||
} | ||
} | ||
}, | ||
"ValidStructure2": { | ||
"type": "structure", | ||
"members": { | ||
"flatList": { | ||
"target": "NotFlatCollection", | ||
"smithy.api#xmlFlattened": true | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |