I'm seeing in practice the too few items error rendering incorrectly as:
Too few items in #/separatePolicies/linkFormats, should be at least undefined, but got 1
When I look at the code I believe it's because we're trying to interpolate the minimum key, but we should be referencing minItems. Also the test doesn't actually test that the string is correct it only tests that it's rendering roughly the correct message.
Here's how I'm defining the json schema for that field:
I'm seeing in practice the too few items error rendering incorrectly as:
Too few items in
#/separatePolicies/linkFormats
, should be at leastundefined
, but got1
When I look at the code I believe it's because we're trying to interpolate the
minimum
key, but we should be referencingminItems
. Also the test doesn't actually test that the string is correct it only tests that it's rendering roughly the correct message.Here's how I'm defining the json schema for that field:
If you want I can try to submit a CR for this unless you're very eager to fix.