jsonschema: validate list of dictionaries with specifc keys
Known/fixed keys of a dictionary can be defined in properties
and included in the required
list:
labels: type: array items: type: object required: [name, value] properties: name: type: string value: type: string additionalProperties: type: string