From 57f4ff8449d0874e57fbe30e750d73146df4f4fc Mon Sep 17 00:00:00 2001 From: John Pennycook Date: Mon, 25 Mar 2024 11:16:28 -0700 Subject: [PATCH] Add missing coverage-0.3.0 schema Signed-off-by: John Pennycook --- codebasin/schema/coverage-0.3.0.schema | 41 ++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 codebasin/schema/coverage-0.3.0.schema diff --git a/codebasin/schema/coverage-0.3.0.schema b/codebasin/schema/coverage-0.3.0.schema new file mode 100644 index 0000000..b9e8f78 --- /dev/null +++ b/codebasin/schema/coverage-0.3.0.schema @@ -0,0 +1,41 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://raw.githubusercontent.com/intel/p3-analysis-library/main/p3/data/coverage-0.3.0.schema", + "title": "Coverage", + "description": "Lines of code used in each file of a code base.", + "type": "array", + "items": { + "type": "object", + "properties": { + "file": { + "type": "string" + }, + "id": { + "type": "string" + }, + "lines": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "integer" + }, + { + "type": "array", + "contains": { + "type": "integer" + }, + "minContains": 2, + "maxContains": 2 + } + ] + } + } + }, + "required": [ + "file", + "id", + "lines" + ] + } +}