From 2b050fb4f615c7f69c9b837c875f96f866a03ccf Mon Sep 17 00:00:00 2001 From: --global <114934849+Kefaku@users.noreply.github.com> Date: Mon, 2 Oct 2023 09:46:42 +0200 Subject: [PATCH] remove 'domains' field (not in use) --- _data/sites.json | 5 +---- script/validate_json.rb | 3 +-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/_data/sites.json b/_data/sites.json index f59c5dce..42cc48bf 100644 --- a/_data/sites.json +++ b/_data/sites.json @@ -381,10 +381,7 @@ { "name": "Livelo", "url": "https://www.livelo.com.br/profile?occsite=points&tab=tab_label_1", - "difficulty": "easy", - "domains": [ - "livelo.com.br" - ] + "difficulty": "easy" }, { diff --git a/script/validate_json.rb b/script/validate_json.rb index 915ece07..e894a095 100755 --- a/script/validate_json.rb +++ b/script/validate_json.rb @@ -22,7 +22,7 @@ module ExitCodes end SupportedDifficulties = ["easy", "medium", "hard", "limited", "impossible"] -SupportedEntryKeys = ["difficulty", "domains", "email", "email_body", "email_subject", "meta", "name", "notes", "url"] +SupportedEntryKeys = ["difficulty", "email", "email_body", "email_subject", "meta", "name", "notes", "url"] SupportedLanguageKeys = ["about", "contribute", "difficulty", "difficulty_easy", "difficulty_hard", "difficulty_impossible", "difficulty_limited", "difficulty_medium", "footercredits", "footerlicense", "guide", "guideeasy", "guideexplanations", "guidehard", "guideimpossible", "guidelimited", @@ -113,7 +113,6 @@ def validate_website_entry(key, i) validate_accepted_keys(key) error_on_missing_field(key, 'url', ExitCodes::MISSING_URL) error_on_missing_field(key, 'difficulty', ExitCodes::MISSING_DIFFICULTY) - warning_on_missing_field(key, 'domains') validate_difficulty(key) validate_localized_urls(key) validate_localized_notes(key)