Skip to content

Commit 12df615

Browse files
committed
Align match-order schema with validation
Make the JSON Schema reject a match order unsupported by OBI. Schema-based validators now fail before the CLI sees the configuration.
1 parent cd2f3e4 commit 12df615

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

devdocs/config/version-2.0/obi-extension.schema.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -480,11 +480,10 @@
480480
"match_order": {
481481
"type": "string",
482482
"enum": [
483-
"first_match_wins",
484-
"last_match_wins"
483+
"first_match_wins"
485484
],
486485
"default": "first_match_wins",
487-
"description": "Rule evaluation order semantics.\nValues include: `first_match_wins`, `last_match_wins`.\nIf omitted, `first_match_wins` is used. `first_match_wins` requires exclude rules before include rules, and OBI does not support `last_match_wins`.\n"
486+
"description": "Rule evaluation order semantics.\nThe supported value is `first_match_wins`.\nIf omitted, `first_match_wins` is used. Exclude rules must precede include rules.\n"
488487
},
489488
"poll_interval": {
490489
"type": "string",

0 commit comments

Comments
 (0)