Skip to content

Commit 0797010

Browse files
[projmgr] Add missing "type": "object" for TypeListMutualExclusion
This fixes the following strict JSON schema warning: strict mode: missing type "object" for keyword "required" at ..common.schema.json#/definitions/TypeListMutualExclusion/oneOf/0" (strictTypes) Contributed by STMicroelectronics Signed-off-by: Torbjörn SVENSSON <[email protected]>
1 parent 4d96494 commit 0797010

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

tools/projmgr/schemas/common.schema.json

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,18 +119,36 @@
119119
},
120120
"TypeListMutualExclusion": {
121121
"oneOf": [
122-
{
122+
{
123+
"type": "object",
123124
"required": ["for-context"],
124-
"not": {"required": ["not-for-context"]}
125+
"not": {
126+
"type": "object",
127+
"required": ["not-for-context"]
128+
}
125129
},
126-
{
130+
{
131+
"type": "object",
127132
"required": ["not-for-context"],
128-
"not": {"required": ["for-context"]}
133+
"not": {
134+
"type": "object",
135+
"required": ["for-context"]
136+
}
129137
},
130138
{
131139
"allOf": [
132-
{ "not": {"required": ["for-context"] }},
133-
{ "not": {"required": ["not-for-context"]}}
140+
{
141+
"not": {
142+
"type": "object",
143+
"required": ["for-context"]
144+
}
145+
},
146+
{
147+
"not": {
148+
"type": "object",
149+
"required": ["not-for-context"]
150+
}
151+
}
134152
]
135153
}
136154
]

0 commit comments

Comments
 (0)