08 Oct, 2020

2 commits

  • In cases where we don't reference another schema, 'additionalProperties'
    can be used instead. This is preferred for now as 'unevaluatedProperties'
    support isn't implemented yet.

    In a few cases, this means adding some missing property definitions of
    which most are for SPI bus properties. 'unevaluatedProperties' is not going
    to work for the SPI bus properties anyways as they are evaluated from the
    parent node, not the SPI child node.

    Acked-by: Mark Brown
    Acked-by: Krzysztof Kozlowski
    Acked-by: Lee Jones
    Acked-by: Jonathan Cameron
    Acked-by: Guenter Roeck
    Link: https://lore.kernel.org/r/20201005183830.486085-3-robh@kernel.org
    Signed-off-by: Rob Herring

    Rob Herring
     
  • This doesn't yet do anything in the tools, but make it explicit so we can
    check either 'unevaluatedProperties' or 'additionalProperties' is present
    in schemas.

    'unevaluatedProperties' is appropriate when including another schema (via
    '$ref') and all possible properties and/or child nodes are not
    explicitly listed in the schema with the '$ref'.

    This is in preparation to add a meta-schema to check for missing
    'unevaluatedProperties' or 'additionalProperties'. This has been a
    constant source of review issues.

    Acked-by: Mark Brown
    Acked-by: Wolfram Sang
    Acked-by: Krzysztof Kozlowski
    Acked-By: Vinod Koul
    Acked-by: Geert Uytterhoeven
    Acked-by: Ulf Hansson
    Acked-by: Guenter Roeck
    Acked-by: Mathieu Poirier
    Acked-by: Dmitry Torokhov
    Link: https://lore.kernel.org/r/20201005183830.486085-2-robh@kernel.org
    Signed-off-by: Rob Herring

    Rob Herring
     

09 Mar, 2020

1 commit