Allow pymdownx.magiclink without arguments in schema

This commit is contained in:
squidfunk 2022-07-03 10:04:16 +02:00
parent 4151f326dc
commit adabdd0bec

View File

@ -299,35 +299,46 @@
] ]
}, },
{ {
"type": "object", "oneOf": [
"properties": { {
"pymdownx.magiclink": {
"title": "MagicLink Python Markdown Extensions", "title": "MagicLink Python Markdown Extensions",
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/", "markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/",
"enum": [
"pymdownx.magiclink"
]
},
{
"type": "object", "type": "object",
"properties": { "properties": {
"user": { "pymdownx.magiclink": {
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/#options", "title": "MagicLink Python Markdown Extensions",
"type": "string" "markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/",
}, "type": "object",
"repo": { "properties": {
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/#options", "user": {
"type": "string" "markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/#options",
}, "type": "string"
"repo_url_shorthand": { },
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/#options", "repo": {
"type": "boolean", "markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/#options",
"default": true "type": "string"
},
"repo_url_shorthand": {
"markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/#options",
"type": "boolean",
"default": true
}
},
"additionalProperties": false,
"required": [
"user",
"repo"
]
} }
}, },
"additionalProperties": false, "additionalProperties": false
"required": [
"user",
"repo"
]
} }
}, ]
"additionalProperties": false
}, },
{ {
"oneOf": [ "oneOf": [