-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Canonicalization : sorting json property values by key if they are ob…
…ject (#530)
- Loading branch information
Showing
13 changed files
with
308 additions
and
5 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
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
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
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
55 changes: 55 additions & 0 deletions
55
helper/tests/helper-tests-17/src/test/resources/PropRecord1.avsc
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,55 @@ | ||
{ | ||
"type": "record", | ||
"namespace": "com.acme", | ||
"name": "RecordWithStuff", | ||
"doc": "Here is a great overall doc", | ||
"aliases": [ | ||
"record_alias", | ||
"a_record_alias" | ||
], | ||
"fields": [ | ||
{ | ||
"name": "strTest", | ||
"type": { | ||
"type": "string", | ||
"avro.java.string": "String" | ||
}, | ||
"some_prop": { | ||
"KEY1": "VALUE1", | ||
"KEY2": "VALUE2", | ||
"ObjKey": { | ||
"K1": "V1", | ||
"K2": "V2", | ||
"K3": "V3", | ||
"K4": "V4", | ||
"K5": { | ||
"K5K1": "K5V1", | ||
"K5K2": "K5V2", | ||
"K5K3": "K5V3" | ||
} | ||
}, | ||
"ArObjKey": [ | ||
{ | ||
"K1": "V1", | ||
"K2": "V2", | ||
"K3": "V3", | ||
"K4": "V4" | ||
}, | ||
{ | ||
"K1": "V1", | ||
"K2": "V2", | ||
"K3": { | ||
"K3K1": "K3V1", | ||
"K3K2": "K3V2", | ||
"K3K3": { | ||
"K3K3K1": "K3K3V1", | ||
"K3K3K2": "K3K3V2", | ||
"K3K3K3": "K3K3V3" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
55 changes: 55 additions & 0 deletions
55
helper/tests/helper-tests-17/src/test/resources/PropRecord2.avsc
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,55 @@ | ||
{ | ||
"type": "record", | ||
"namespace": "com.acme", | ||
"name": "RecordWithStuff", | ||
"doc": "Here is a great overall doc", | ||
"aliases": [ | ||
"record_alias", | ||
"a_record_alias" | ||
], | ||
"fields": [ | ||
{ | ||
"name": "strTest", | ||
"type": { | ||
"type": "string", | ||
"avro.java.string": "String" | ||
}, | ||
"some_prop": { | ||
"KEY1": "VALUE1", | ||
"KEY2": "VALUE2", | ||
"ObjKey": { | ||
"K2": "V2", | ||
"K1": "V1", | ||
"K5": { | ||
"K5K2": "K5V2", | ||
"K5K1": "K5V1", | ||
"K5K3": "K5V3" | ||
}, | ||
"K4": "V4", | ||
"K3": "V3" | ||
}, | ||
"ArObjKey": [ | ||
{ | ||
"K3": "V3", | ||
"K1": "V1", | ||
"K4": "V4", | ||
"K2": "V2" | ||
}, | ||
{ | ||
"K1": "V1", | ||
"K3": { | ||
"K3K2": "K3V2", | ||
"K3K1": "K3V1", | ||
"K3K3": { | ||
"K3K3K2": "K3K3V2", | ||
"K3K3K1": "K3K3V1", | ||
"K3K3K3": "K3K3V3" | ||
} | ||
}, | ||
"K2": "V2" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
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
55 changes: 55 additions & 0 deletions
55
helper/tests/helper-tests-19/src/test/resources/PropRecord1.avsc
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,55 @@ | ||
{ | ||
"type": "record", | ||
"namespace": "com.acme", | ||
"name": "RecordWithStuff", | ||
"doc": "Here is a great overall doc", | ||
"aliases": [ | ||
"record_alias", | ||
"a_record_alias" | ||
], | ||
"fields": [ | ||
{ | ||
"name": "strTest", | ||
"type": { | ||
"type": "string", | ||
"avro.java.string": "String" | ||
}, | ||
"some_prop": { | ||
"KEY1": "VALUE1", | ||
"KEY2": "VALUE2", | ||
"ObjKey": { | ||
"K1": "V1", | ||
"K2": "V2", | ||
"K3": "V3", | ||
"K4": "V4", | ||
"K5": { | ||
"K5K1": "K5V1", | ||
"K5K2": "K5V2", | ||
"K5K3": "K5V3" | ||
} | ||
}, | ||
"ArObjKey": [ | ||
{ | ||
"K1": "V1", | ||
"K2": "V2", | ||
"K3": "V3", | ||
"K4": "V4" | ||
}, | ||
{ | ||
"K1": "V1", | ||
"K2": "V2", | ||
"K3": { | ||
"K3K1": "K3V1", | ||
"K3K2": "K3V2", | ||
"K3K3": { | ||
"K3K3K1": "K3K3V1", | ||
"K3K3K2": "K3K3V2", | ||
"K3K3K3": "K3K3V3" | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |
Oops, something went wrong.