Closed Bug 1516463 Opened 7 years ago Closed 7 years ago

use minItems /maxItems for arrays, not minLength / maxLength

Categories

(Taskcluster :: Services, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dustin, Assigned: dustin)

Details

At least the post-artifact-request.json makes this mistake
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..
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Component: Platform and Services → Services
You need to log in before you can comment on or make changes to this bug.