diff --git a/doc/json_schema.json b/doc/json_schema.json index 5804b2292..419c0a74b 100644 --- a/doc/json_schema.json +++ b/doc/json_schema.json @@ -1117,6 +1117,9 @@ "maxItems": 2 } } + }, + "key": { + "$ref": "#/$defs/key" } } }, @@ -1174,10 +1177,7 @@ "description": "Text to print", "type": "string" } - }, - "required": [ - "format" - ] + } }, { "title": "Display", diff --git a/src/modules/custom/custom.c b/src/modules/custom/custom.c index b68e19bb9..81e5aa416 100644 --- a/src/modules/custom/custom.c +++ b/src/modules/custom/custom.c @@ -6,12 +6,6 @@ void ffPrintCustom(FFCustomOptions* options) { - if (options->moduleArgs.outputFormat.length == 0) - { - ffPrintError(FF_CUSTOM_MODULE_NAME, 0, &options->moduleArgs, FF_PRINT_TYPE_DEFAULT, "output format must be set for custom module"); - return; - } - ffPrintLogoAndKey(FF_CUSTOM_MODULE_NAME, 0, &options->moduleArgs, FF_PRINT_TYPE_DEFAULT); ffStrbufWriteTo(&options->moduleArgs.outputFormat, stdout); puts(FASTFETCH_TEXT_MODIFIER_RESET);