Lore when block
Source: spec/schemas/when.schema.json.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://lore.dev/schemas/v1/when.schema.json",
"title": "Lore when block",
"type": "object",
"additionalProperties": false,
"minProperties": 1,
"properties": {
"addedContains": { "type": "array", "items": { "type": "string", "minLength": 1, "pattern": "^[^\\n\\r]*$" } },
"addedMatches": { "type": "array", "items": { "type": "string", "minLength": 1 } },
"removedContains": { "type": "array", "items": { "type": "string", "minLength": 1, "pattern": "^[^\\n\\r]*$" } },
"removedMatches": { "type": "array", "items": { "type": "string", "minLength": 1 } },
"droppedContains": { "type": "array", "items": { "type": "string", "minLength": 1, "pattern": "^[^\\n\\r]*$" } },
"droppedMatches": { "type": "array", "items": { "type": "string", "minLength": 1 } },
"changed": { "type": "array", "items": { "$ref": "#/$defs/glob" } },
"unchanged": { "type": "array", "items": { "$ref": "#/$defs/glob" } }
},
"$defs": {
"glob": {
"type": "string",
"minLength": 1,
"not": { "pattern": "(^|/)\\.\\.(/|$)" }
}
}
}