From adabdd0bec756203653d8230a89fdf9187afe07f Mon Sep 17 00:00:00 2001 From: squidfunk Date: Sun, 3 Jul 2022 10:04:16 +0200 Subject: [PATCH] Allow pymdownx.magiclink without arguments in schema --- docs/schema/extensions/pymdownx.json | 55 +++++++++++++++++----------- 1 file changed, 33 insertions(+), 22 deletions(-) diff --git a/docs/schema/extensions/pymdownx.json b/docs/schema/extensions/pymdownx.json index e20736882..6617b857f 100644 --- a/docs/schema/extensions/pymdownx.json +++ b/docs/schema/extensions/pymdownx.json @@ -299,35 +299,46 @@ ] }, { - "type": "object", - "properties": { - "pymdownx.magiclink": { + "oneOf": [ + { "title": "MagicLink – Python Markdown Extensions", "markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/", + "enum": [ + "pymdownx.magiclink" + ] + }, + { "type": "object", "properties": { - "user": { - "markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/#options", - "type": "string" - }, - "repo": { - "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", - "type": "boolean", - "default": true + "pymdownx.magiclink": { + "title": "MagicLink – Python Markdown Extensions", + "markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/", + "type": "object", + "properties": { + "user": { + "markdownDescription": "https://facelessuser.github.io/pymdown-extensions/extensions/magiclink/#options", + "type": "string" + }, + "repo": { + "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", + "type": "boolean", + "default": true + } + }, + "additionalProperties": false, + "required": [ + "user", + "repo" + ] } }, - "additionalProperties": false, - "required": [ - "user", - "repo" - ] + "additionalProperties": false } - }, - "additionalProperties": false + ] }, { "oneOf": [