Joi Validation Schema Conditional Logic Not Working as Expected Based on Dynamic Value
I am having trouble with a Joi validation schema where the validation logic needs to handle different version ranges dynamically. The version ranges for legacy and current reports are defined in a configuration object, and I need the validation to adapt based on these ranges.