"additionalItems" should not be honored if "items" is an object.
As per json-schema specification:
if "items" is not present, or its value is an object, validation of the instance always succeeds, regardless of the value of "additionalItems";
Currently (v 4.0.x), CollectionConstraint makes an extra checks for "additionalItems" if "items" is object and fails validation
Feel free to open a PR
@SereneAnt @shmax Are either of you guys intending to address this, or should I add it to my list?
(Note that I don't consider this a high priority, so if it goes on my list, it may take me a while to get to it).
@erayd I'm off this train as for now, sorry. For sure, you'll do it better!
@erayd I wasn't planning on it, but you've been doing most of the heavy labor around here lately, so if you would like me to look at it I will.
@shmax Feel free if you're in the mood, but no pressure and no rush - this issue is IMO minor, has already been open for five months, and the OP doesn't seem to care.
If you don't feel like doing this, it's not an issue, and I'll probably catch is sometime during my implementation of strict-mode, once we have the rules thing sorted.