Skip to content

Commit 7651bb5

Browse files
authored
feat: add more valid options for pytest schema (SchemaStore#4568)
1 parent f27bdcc commit 7651bb5

File tree

1 file changed

+23
-9
lines changed

1 file changed

+23
-9
lines changed

src/schemas/json/partial-pytest.json

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,17 @@
177177
"description": "Specifies minimum required pytest version."
178178
},
179179
"norecursedirs": {
180-
"type": "array",
181-
"items": {
182-
"type": "string"
183-
},
180+
"oneOf": [
181+
{
182+
"type": "array",
183+
"items": {
184+
"type": "string"
185+
}
186+
},
187+
{
188+
"type": "string"
189+
}
190+
],
184191
"description": "Sets base name patterns for directories to be skipped during test discovery. Uses fnmatch-style matching. Replaces default patterns.",
185192
"x-tombi-array-values-order": "ascending"
186193
},
@@ -193,10 +200,17 @@
193200
"x-tombi-array-values-order": "ascending"
194201
},
195202
"python_files": {
196-
"type": "array",
197-
"items": {
198-
"type": "string"
199-
},
203+
"oneOf": [
204+
{
205+
"type": "array",
206+
"items": {
207+
"type": "string"
208+
}
209+
},
210+
{
211+
"type": "string"
212+
}
213+
],
200214
"description": "Specifies glob patterns for identifying Python test module files.",
201215
"default": ["test_*.py", "*_test.py"],
202216
"x-tombi-array-values-order": "ascending"
@@ -285,7 +299,7 @@
285299
"default": false
286300
}
287301
},
288-
"additionalProperties": false,
302+
"additionalProperties": true,
289303
"x-tombi-table-keys-order": "schema"
290304
},
291305
"LogLevel": {

0 commit comments

Comments
 (0)