Skip to content

Commit

Permalink
remove 'domains' field (not in use)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kefaku committed Oct 2, 2023
1 parent ef8b667 commit 2b050fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
5 changes: 1 addition & 4 deletions _data/sites.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},

{
Expand Down
3 changes: 1 addition & 2 deletions script/validate_json.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 2b050fb

Please sign in to comment.