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

[0.10] Support Smithy IDL Serialization #284

Merged
merged 16 commits into from
Feb 27, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Don't filter metadata case-insensitively
Shapes can be filtered case-insensitively because they are required
to be case-insensitively unique. Metadata doesn't have that same
constraint though, so filtering them as such would lead to a non-
deterministic ordering.
  • Loading branch information
JordonPhillips committed Feb 24, 2020
commit 675b7d12d1a2ec9da32c5f2fb74f4c951ae341d9
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private String serializeHeader(String namespace, Model fullModel) {
// Write the full metadata into every output. When loaded back together the conflicts will be ignored,
// but if they're separated out then each file will still have all the context.
fullModel.getMetadata().entrySet().stream()
.sorted(Map.Entry.comparingByKey(String.CASE_INSENSITIVE_ORDER))
.sorted(Map.Entry.comparingByKey())
.filter(entry -> metadataFilter.test(entry.getKey()))
JordonPhillips marked this conversation as resolved.
Show resolved Hide resolved
.forEach(entry -> {
codeWriter.trimTrailingSpaces(false)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
$version: "0.5.0"

metadata CaseSensitive = true
metadata caseSensitive = true
metadata example.array = [
10,
true,
Expand Down