-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Add ability to generate files in folders
Adding a new feature flag `prefix_schema_files_with_package` which results in the schema files being generated in folders based on the package of the message.
- Loading branch information
Showing
11 changed files
with
612 additions
and
112 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
37 changes: 37 additions & 0 deletions
37
testdata/prefix_schema_files_with_package/testdata/AOneOf.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,37 @@ | ||
{ | ||
"type": "record", | ||
"name": "AOneOf", | ||
"namespace": "testdata", | ||
"fields": [ | ||
{ | ||
"name": "oneof_types", | ||
"type": [ | ||
{ | ||
"type": "record", | ||
"name": "TypeA", | ||
"namespace": "testdata", | ||
"fields": [ | ||
{ | ||
"name": "foo", | ||
"type": "string", | ||
"default": "" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "record", | ||
"name": "TypeB", | ||
"namespace": "testdata", | ||
"fields": [ | ||
{ | ||
"name": "bar", | ||
"type": "string", | ||
"default": "" | ||
} | ||
] | ||
} | ||
], | ||
"default": null | ||
} | ||
] | ||
} |
Oops, something went wrong.