@@ -2,14 +2,6 @@ import std/[json, os]
2
2
import " .." / helpers
3
3
import " ." / validators
4
4
5
- proc isValidAuthorOrContributor (data: JsonNode , context: string , path: string ): bool =
6
- if isObject (data, context, path):
7
- result = true
8
- if not checkString (data, " github_username" , path):
9
- result = false
10
- if not checkString (data, " exercism_username" , path, isRequired = false ):
11
- result = false
12
-
13
5
proc checkFiles (data: JsonNode , context, path: string ): bool =
14
6
result = true
15
7
if hasObject (data, context, path):
@@ -25,12 +17,9 @@ proc checkFiles(data: JsonNode, context, path: string): bool =
25
17
proc isValidPracticeExerciseConfig (data: JsonNode , path: string ): bool =
26
18
if isObject (data, " " , path):
27
19
result = true
28
- # Temporarily disable the checking of authors as we'll be doing bulk PRs
29
- # to pre-populate this field for all tracks
30
- # if not hasArrayOf(data, "authors", path, isValidAuthorOrContributor):
31
- # result = false
32
- if not hasArrayOf (data, " contributors" , path, isValidAuthorOrContributor,
33
- isRequired = false ):
20
+ if not hasArrayOfStrings (data, " " , " authors" , path, isRequired = false ):
21
+ result = false
22
+ if not hasArrayOfStrings (data, " " , " contributors" , path, isRequired = false ):
34
23
result = false
35
24
# Temporarily disable the checking of the files to give tracks the chance
36
25
# to update this manually
0 commit comments