問題タブ [javax.validation]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
java - 条件付き javax.validation.constraints.Pattern
特定の条件で javax.validation.constraints.Pattern をオフにしたい。
郵便番号パターンを検証するために、フィールド address.postcode で使用されます。ただし、アドレスが英国以外の場合は、これをオフにする必要があります。「住所」オブジェクトが使用されている場所、または郵便番号が設定されている場所を知ることで、それが英国以外の郵便番号であるかどうかを知ることができます。