* [PATCH] meta-schemas: nodes: Allow if-then-else directly in patternProperties objects
@ 2025-06-09 9:59 John Ernberg
2025-06-09 13:17 ` Rob Herring
0 siblings, 1 reply; 2+ messages in thread
From: John Ernberg @ 2025-06-09 9:59 UTC (permalink / raw)
To: Rob Herring; +Cc: devicetree-spec@vger.kernel.org, John Ernberg
Having local singular if-then-else statements under a patternProperties
object-node causes a schema warning about an unexpected statement.
Allow this construct to reduce size of singular if-then-else blocks in
this context, aligning the rules of them with the top-level.
Signed-off-by: John Ernberg <john.ernberg@actia.se>
---
dtschema/meta-schemas/nodes.yaml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dtschema/meta-schemas/nodes.yaml b/dtschema/meta-schemas/nodes.yaml
index 0b2c8f7..e45cb45 100644
--- a/dtschema/meta-schemas/nodes.yaml
+++ b/dtschema/meta-schemas/nodes.yaml
@@ -27,6 +27,9 @@ propertyNames:
- deprecated
- required
- not
+ - if
+ - else
+ - then
- allOf
- anyOf
- oneOf
--
2.49.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] meta-schemas: nodes: Allow if-then-else directly in patternProperties objects
2025-06-09 9:59 [PATCH] meta-schemas: nodes: Allow if-then-else directly in patternProperties objects John Ernberg
@ 2025-06-09 13:17 ` Rob Herring
0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2025-06-09 13:17 UTC (permalink / raw)
To: John Ernberg; +Cc: devicetree-spec@vger.kernel.org
On Mon, Jun 09, 2025 at 09:59:51AM +0000, John Ernberg wrote:
> Having local singular if-then-else statements under a patternProperties
> object-node causes a schema warning about an unexpected statement.
>
> Allow this construct to reduce size of singular if-then-else blocks in
> this context, aligning the rules of them with the top-level.
>
> Signed-off-by: John Ernberg <john.ernberg@actia.se>
> ---
> dtschema/meta-schemas/nodes.yaml | 3 +++
> 1 file changed, 3 insertions(+)
Applied, thanks.
Rob
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-06-09 13:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-09 9:59 [PATCH] meta-schemas: nodes: Allow if-then-else directly in patternProperties objects John Ernberg
2025-06-09 13:17 ` Rob Herring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).