-
-
Notifications
You must be signed in to change notification settings - Fork 123
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description of the bug
The schema.json is accidentally defining the handlers property as an array (via items), causing schema validation to fail or stop suggesting properties.
To Reproduce
Reproduction:
# yaml-language-server: $schema=https://squidfunk.github.io/mkdocs-material/schema.json
plugins:
- mkdocstrings:
handlers:
python:
# no auto-completionChanging the handlers object to an array fixes validation, but this should be invalid.
# yaml-language-server: $schema=https://squidfunk.github.io/mkdocs-material/schema.json
plugins:
- mkdocstrings:
handlers:
- python:
# auto-completion worksFull traceback
N/A
Additional context
The handlers object is currently defined via
Lines 37 to 48 in 52ea2f2
| "handlers": { | |
| "title": "The handlers global configuration.", | |
| "markdownDescription": "https://mkdocstrings.github.io/handlers/overview/", | |
| "type": "object", | |
| "default": null, | |
| "items": { | |
| "oneOf": [ | |
| { | |
| "$ref": "https://raw.githubusercontent.com/mkdocstrings/python/master/docs/schema.json" | |
| } | |
| ] | |
| } |
I would suggest this change, removing the items key.
"handlers": {
"title": "The handlers global configuration.",
"markdownDescription": "https://mkdocstrings.github.io/handlers/overview/",
"allOf": [
{
"$ref": "https://raw.githubusercontent.com/mkdocstrings/python/master/docs/schema.json"
}
]
}Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working