# Re: \[PATCH\] dt-bindings: Drop redundant minItems/maxItems

- From: Marc Kleine-Budde \<mkl@pengutronix.de\>
- Date: 2021-06-16 10:41:54 
- List: linux-serial
- Page: https://ratatoskr.run/linux-serial/2021/06/1416310
- Thread: https://ratatoskr.run/linux-devicetree/2021/06/1415442/t.md

```text
On 15.06.2021 13:15:43, Rob Herring wrote:
> 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.
> 
> This condition is partially checked with the meta-schema already, but
> only if both 'minItems' and 'maxItems' are equal to the 'items' length.
> An improved meta-schema is pending.
[...]
>  Documentation/devicetree/bindings/net/can/bosch,m_can.yaml  | 2 --

Acked-by: Marc Kleine-Budde <mkl@pengutronix.de>

regards,
Marc

-- 
Pengutronix e.K.                 | Marc Kleine-Budde           |
Embedded Linux                   | https://www.pengutronix.de  |
Vertretung West/Dortmund         | Phone: +49-231-2826-924     |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-5555 |
```

## Attachments

- [signature.asc](https://ratatoskr.run/linux-serial/2021/06/1416310/attachment/0) (application/pgp-signature, 488 bytes)
