On 30/01/2023 22:10, Jon Hunter wrote: > > On 28/01/2023 10:29, Krzysztof Kozlowski wrote: > > ... > >>> + $ref: /schemas/connector/usb-connector.yaml# >>> + unevaluatedProperties: false >>> + properties: >>> + reg: >>> + maxItems: 1 >>> + >>> +required: >>> + - compatible >>> + - reg >>> + - interrupts >> >> I would assume that at least one connector is required (oneOf: required:). > > > I have been looking at this and wondered if we need the 'oneOf' in this > case? Shouldn't we just add 'connector@0' to the required properties? > > At first I added ... > > oneOf: > - required: > - connector@0 > - required: > - connector@1 > > But this is not correct, because the above will cause warnings if both > connector@0 and connector@1 are present. Right, then anyOf should do the trick. Best regards, Krzysztof