Thread (7 messages) 7 messages, 6 authors, 2022-05-04

Re: [PATCH] dt-bindings: Drop redundant 'maxItems/minItems' in if/then schemas

From: Vinod Koul <vkoul@kernel.org>
Date: 2022-05-04 06:41:03
Also in: dri-devel, linux-can, linux-clk, linux-devicetree, linux-iio, linux-mmc, linux-phy, linux-pm, linux-rtc, linux-serial

On 03-05-22, 11:27, Rob Herring wrote:
Another round of removing redundant minItems/maxItems when 'items' list is
specified. This time it is in if/then schemas as the meta-schema was
failing to check this case.

If a property has an 'items' list, then a 'minItems' or 'maxItems' with the
same size as the list is redundant and can be dropped. Note that is DT
schema specific behavior and not standard json-schema behavior. The tooling
will fixup the final schema adding any unspecified minItems/maxItems.
For phy:

Acked-By: Vinod Koul <vkoul@kernel.org>

-- 
~Vinod
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help