From 85c01b7d3d8c47ef515d18f8101ab9e0a603b220 Mon Sep 17 00:00:00 2001 From: drkostas Date: Sun, 3 May 2020 22:46:03 +0300 Subject: [PATCH] Configuration minor changes --- configuration/configuration.py | 2 +- configuration/yml_schema.json | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/configuration/configuration.py b/configuration/configuration.py index d6cd052..1f057b4 100644 --- a/configuration/configuration.py +++ b/configuration/configuration.py @@ -26,7 +26,7 @@ class Configuration: def __init__(self, config_src: Union[TextIOWrapper, StringIO, str], config_schema_path: str = 'yml_schema.json'): """ - Tha basic constructor. Creates a new instance of a MySQL Datastore using the specified credentials + The basic constructor. Creates a new instance of the Configuration class. :param config_src: :param config_schema_path: diff --git a/configuration/yml_schema.json b/configuration/yml_schema.json index deaa100..17ceb93 100644 --- a/configuration/yml_schema.json +++ b/configuration/yml_schema.json @@ -86,6 +86,9 @@ }, "config": { "type": "object", + "required": [ + "api_key" + ], "properties": { "api_key": { "type": "string" @@ -115,6 +118,10 @@ }, "config": { "type": "object", + "required": [ + "email_address", + "api_key" + ], "properties": { "email_address": { "type": "string"