-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
) * AVRO-3900: [Rust] Make it possible to use custom validators * AVRO-3900: Add validator trait for enum symbol names * AVRO-3900: Introduce validator for RecordField's name * AVRO-3900: Extract the custom validators tests as IT tests This way they use the public APIs of the crate, as a real user application. * AVRO-3900: Polish APIs * AVRO-3900: Split the validator integration tests Otherwise there are timing issues with the initializations of the OnceLock's for the different validators. Parsing a Schema leads to initialization of the default validator and later it is impossible to set a custom one * AVRO-3900: Simplify generate_interop_data.rs example to not use avro_test_helper crate For some reason clearing the log messages in the tests destructor (#[dtor]) was failing for this example. Simplify the TestLogger to use the std thread_local!() instead of the third party ref_thread_local!() * AVRO-3900: Merge the validators integration tests in one test Just make sure the setup of the custom validators is done before the parsing of any schema to prevent registering the default validator (SpecificationValidator) * AVRO-3900: Improve the documentation Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
- Loading branch information
Showing
11 changed files
with
504 additions
and
93 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.