forked from linkedin/avro-util
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
throw better error msg on default parse failure (linkedin#501)
- Loading branch information
1 parent
e3fa1db
commit ed58305
Showing
7 changed files
with
109 additions
and
14 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
14 changes: 14 additions & 0 deletions
14
parser/src/test/resources/schemas/badDefaultValues/BadPrimitiveUnion.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,14 @@ | ||
{ | ||
"type": "record", | ||
"name": "User", | ||
"fields": [ | ||
{ | ||
"name": "name", | ||
"type": [ | ||
"null", | ||
"string" | ||
], | ||
"default": "shouldBeNull" | ||
} | ||
] | ||
} |
30 changes: 30 additions & 0 deletions
30
parser/src/test/resources/schemas/badDefaultValues/BadRecord.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,30 @@ | ||
{ | ||
"type": "record", | ||
"name": "User", | ||
"fields": [ | ||
{ | ||
"name": "name", | ||
"type": { | ||
"type": "record", | ||
"name": "Name", | ||
"fields": [ | ||
{ | ||
"name": "first", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "last", | ||
"type": "string" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"name": "recursive", | ||
"type": "Name", | ||
"default": { | ||
"first": null | ||
} | ||
} | ||
] | ||
} |
14 changes: 14 additions & 0 deletions
14
parser/src/test/resources/schemas/badDefaultValues/BadUnion.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,14 @@ | ||
{ | ||
"type": "record", | ||
"name": "User", | ||
"fields": [ | ||
{ | ||
"name": "name", | ||
"type": [ | ||
"null", | ||
"User" | ||
], | ||
"default": "shouldBeNull" | ||
} | ||
] | ||
} |