improve validation error messages with detailed formatting and fix cache settings #314
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request refines the configuration and validation logic for the tiered cache feature in the Azion configuration system. It removes the deprecated
tieredCacheEnabledflag, restructures how tiered cache settings are defined and validated, and improves error reporting for configuration validation. These changes make the configuration more flexible and user-friendly, especially regarding optional fields and error diagnostics.Tiered Cache Configuration Updates:
tieredCacheEnabledflag from both the example config and documentation, and replaced it with a more structuredtieredCacheobject under each cache entry. [1] [2]tieredCachestructure, including itsenabledandtopologyproperties. [1] [2] [3]Validation Schema Improvements:
tieredCacheto require thetopologyfield only whenenabledis set to true, and to allowtopologyto benull. Improved error messages for missing or invalid properties. [1] [2]Process Logic Adjustments:
topologyproperty in the output when tiered cache is enabled, ensuring more accurate configuration output and import. [1] [2] [3] [4]Validation Error Reporting: