Skip to content

Commit 3ca3ff6

Browse files
committed
Disallow presence of both parts and value in expression part
1 parent 8481e37 commit 3ca3ff6

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

test/schemas/v0-0-1/tests.schema.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,10 +282,6 @@
282282
{
283283
"description": "Message expression part.",
284284
"type": "object",
285-
"required": [
286-
"type",
287-
"source"
288-
],
289285
"properties": {
290286
"type": {
291287
"type": "string"
@@ -315,6 +311,16 @@
315311
}
316312
},
317313
"value": {}
314+
},
315+
"required": [
316+
"type",
317+
"source"
318+
],
319+
"not": {
320+
"required": [
321+
"parts",
322+
"value"
323+
]
318324
}
319325
}
320326
]

0 commit comments

Comments
 (0)