forked from leosilvadev/avrodoc-plus
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: possible to refer type in another schemata
This is only possible if the referent is parsed before the referrer (i.e. if A refer to B, B has to be parsed first). This may be fixed in the future
- Loading branch information
Showing
3 changed files
with
55 additions
and
3 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,18 @@ | ||
{ | ||
"name": "ToBeReferred", | ||
"type": "record", | ||
"namespace": "com.example_referent", | ||
"doc": "A simple object provided as a building block", | ||
"fields": [ | ||
{ | ||
"name": "value", | ||
"type": "boolean", | ||
"doc": "The value of the object to be referenced" | ||
}, | ||
{ | ||
"name": "history", | ||
"type": "string", | ||
"doc": "A history field detailing random information about the object" | ||
} | ||
] | ||
} |
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,18 @@ | ||
{ | ||
"name": "TheReferrer", | ||
"doc": "A complex object referencing object from another schemata", | ||
"namespace": "com.example_referrer", | ||
"type": "record", | ||
"fields": [ | ||
{ | ||
"name": "name", | ||
"type": "string", | ||
"doc": "the name of the referrer object" | ||
}, | ||
{ | ||
"name": "externalObject", | ||
"type": "com.example_referent.ToBeReferred", | ||
"doc": "An object from another schemata" | ||
} | ||
] | ||
} |