-
-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: apply latest changes to the avro schema parser (#623)
- Loading branch information
1 parent
6fc8b21
commit 4580db5
Showing
3 changed files
with
157 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"schemaFormat": "application/vnd.apache.avro;version=1.9.0", | ||
"payload": { | ||
"type":"record", | ||
"name":"RecordWithReferences", | ||
"namespace":"com.example", | ||
"fields":[ | ||
{ | ||
"name":"Record1", | ||
"type":{ | ||
"type":"record", | ||
"name":"Record1", | ||
"doc":"Reused in other fields", | ||
"fields":[ | ||
{ | ||
"name":"string", | ||
"type":"string", | ||
"doc":"field in Record1" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"name":"FieldThatDefineRecordInUnion", | ||
"type":[ | ||
"null", | ||
{ | ||
"type":"record", | ||
"name":"RecordDefinedInUnion", | ||
"namespace":"com.example.model", | ||
"doc":"", | ||
"fields":[ | ||
{ | ||
"name":"number", | ||
"type":"long", | ||
"doc":"field in RecordDefinedInUnion", | ||
"minimum": 0, | ||
"maximum": 2 | ||
} | ||
] | ||
} | ||
], | ||
"default":null | ||
}, | ||
{ | ||
"name":"FieldThatReuseRecordDefinedInUnion", | ||
"type":[ | ||
"null", | ||
"com.example.model.RecordDefinedInUnion" | ||
], | ||
"default":null | ||
}, | ||
{ | ||
"name":"FieldThatReuseRecord1", | ||
"type":[ | ||
"null", | ||
"Record1" | ||
], | ||
"default":null | ||
}, | ||
{ | ||
"name": "simpleField", | ||
"type": "string" | ||
} | ||
] | ||
} | ||
} |
Oops, something went wrong.