Thread (2 messages) 2 messages, 2 authors, 2021-08-18

Re: Express that at least one patternProperties is required

flat view

From: Rob Herring <robh+dt@kernel.org>
Date: 2021-08-18 18:28:40

On Wed, Aug 18, 2021 at 6:03 AM Sa, Nuno [off-list ref] wrote:
Hi Rob,

I'm preparing a patch to do a slight improvement in [1] where if there are no channels
given in the devicetree, it does not really make sense to probe the device. Now,
I want to express this in the bindings doc [2] but I'm failing to find a way to say that
at least one of the patternProperties channel has to be present. For my shame,
this is the only way I could express it:
No shame, there's actually not a better way. What you need is
something like this[1], but you'll see it has been an open issue for
some time.

I don't think it's worth adding given the verbosity.

Rob

[1] https://github.com/json-schema-org/json-schema-vocabularies/issues/16
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help