Skip to main content

Lore eligibility result

Source: spec/schemas/eligibility.schema.json.

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://lore.dev/schemas/v1/eligibility.schema.json",
"title": "Lore eligibility result",
"type": "object",
"additionalProperties": false,
"required": ["eligible", "hits", "excluded", "warnings"],
"properties": {
"eligible": { "type": "array", "uniqueItems": true, "items": { "$ref": "https://lore.dev/schemas/v1/document-model.schema.json#/$defs/id" } },
"hits": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": ["rule", "file", "line", "text"],
"properties": {
"rule": { "$ref": "https://lore.dev/schemas/v1/document-model.schema.json#/$defs/id" },
"file": { "type": "string" },
"line": { "type": "integer", "minimum": 1 },
"text": { "type": "string" },
"side": { "enum": ["new", "old"] }
}
}
},
"excluded": { "type": "array", "items": { "$ref": "https://lore.dev/schemas/v1/document-model.schema.json#/$defs/diagnostic" } },
"warnings": { "type": "array", "items": { "$ref": "https://lore.dev/schemas/v1/document-model.schema.json#/$defs/diagnostic" } }
}
}