Skip to content

Commit d767b27

Browse files
committed
fix: dict was forcing array
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 327af77 commit d767b27

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

src/tox/session/cmd/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def _process_type(of_type: typing.Any) -> dict[str, typing.Any]: # noqa: PLR091
5757
if typing.get_origin(of_type) is dict:
5858
return {
5959
"type": "object",
60-
"additionalProperties": {"type": "array", "items": _process_type(typing.get_args(of_type)[1])},
60+
"additionalProperties": {**_process_type(typing.get_args(of_type)[1])},
6161
}
6262
msg = f"Unknown type: {of_type}"
6363
raise ValueError(msg)

src/tox/tox.schema.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,7 @@
6161
"additionalProperties": {
6262
"type": "array",
6363
"items": {
64-
"type": "array",
65-
"items": {
66-
"$ref": "#/definitions/subs"
67-
}
64+
"$ref": "#/definitions/subs"
6865
}
6966
},
7067
"description": "core labels"

0 commit comments

Comments
 (0)