Fixing Sphinx-Needs: Validation Issues With Variants
Hey everyone, let's dive into a pretty interesting bug I ran into while working with Sphinx-Needs. Specifically, it's about how the validation process handles variants. This can be a real headache if you're using them, so let's break it down.
The Problem: Pattern Validation and Variants
So, here's the deal. I was using Sphinx-Needs version 6.0.1
, and I started getting this annoying warning: WARNING: Need 'SPEC_003' has validation errors: Severity: violation Field: complexity Need path: SPEC_003 Schema path: extra_options > schema > properties > complexity > pattern Schema message: '<<v1:high,high>>' does not match '^[a-zA-Z0-9:_]*(very_high|high|medium|low)(, (very_high|high|medium|low))*