For instance, if schema sets maxItems, append does not honor that. Same thing with the unique keyword.
The broader question is: Should merge strategies inspect the schema at all (apart from what is necessary to determine the merge strategy) and adapt their behavior to it or should that be left to the user? Is it an error if the user sets "append" strategy for an array that will overflow maxItems?
For instance, if schema sets
maxItems
, append does not honor that. Same thing with theunique
keyword.The broader question is: Should merge strategies inspect the schema at all (apart from what is necessary to determine the merge strategy) and adapt their behavior to it or should that be left to the user? Is it an error if the user sets "append" strategy for an array that will overflow
maxItems
?