Skip to content

Commit

Permalink
meta-schemas: Allow additionalItems to be a schema
Browse files Browse the repository at this point in the history
Allow for a case where the first item entries are fixed followed by a
series of optional entries:

maxItems: 5
items:
  - const: ipg
additionalItems:
  pattern: '^source[0-4]$'

Signed-off-by: Rob Herring (Arm) <[email protected]>
  • Loading branch information
robherring committed Dec 16, 2024
1 parent 93ee800 commit b5356df
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion dtschema/meta-schemas/keywords.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,11 @@ properties:
not:
pattern: '^https?://'
additionalItems:
type: boolean
oneOf:
- type: object
allOf:
- $ref: "#/definitions/sub-schemas"
- type: boolean
additionalProperties:
oneOf:
- type: object
Expand Down

0 comments on commit b5356df

Please sign in to comment.