Closed
Bug 1516463
Opened 7 years ago
Closed 7 years ago
use minItems /maxItems for arrays, not minLength / maxLength
Categories
(Taskcluster :: Services, enhancement)
Taskcluster
Services
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dustin, Assigned: dustin)
Details
At least the post-artifact-request.json makes this mistake
| Assignee | ||
Comment 1•7 years ago
|
||
I did a little search over all schema files, using
import json
def recur(d):
if type(d) == dict:
if d.get('entries') or d.get('type') == 'array':
if d.get('minLength') or d.get('maxLength'):
return True
return any(recur(v) for v in d.values())
elif type(d) == list:
return any(recur(v) for v in d)
for f in open("ml.files"):
d = json.load(open(f.strip()))
if recur(d):
print(f)
and this was the only file I found..
| Assignee | ||
Comment 2•7 years ago
|
||
https://github.com/taskcluster/taskcluster-queue/pull/309
that was easy :)
| Assignee | ||
Updated•7 years ago
|
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Component: Platform and Services → Services
You need to log in
before you can comment on or make changes to this bug.
Description
•