diff --git a/MANIFEST.in b/MANIFEST.in index a6c7123..7f8230d 100644 --- a/MANIFEST.in +++ b/MANIFEST.in @@ -1,4 +1,4 @@ include codebasin/schema/compilation-database.schema include codebasin/schema/config.schema -include codebasin/schema/coverage-0.1.0.schema +include codebasin/schema/coverage-0.2.0.schema include codebasin/schema/importcfg.schema diff --git a/codebasin/schema/coverage-0.1.0.schema b/codebasin/schema/coverage-0.2.0.schema similarity index 89% rename from codebasin/schema/coverage-0.1.0.schema rename to codebasin/schema/coverage-0.2.0.schema index 6eccb1e..b0d6266 100644 --- a/codebasin/schema/coverage-0.1.0.schema +++ b/codebasin/schema/coverage-0.2.0.schema @@ -1,6 +1,6 @@ { "$schema": "https://json-schema.org/draft/2020-12/schema", - "$id": "https://raw.githubusercontent.com/intel/p3-analysis-library/main/p3/data/coverage-0.1.0.schema", + "$id": "https://raw.githubusercontent.com/intel/p3-analysis-library/main/p3/data/coverage-0.2.0.schema", "title": "Coverage", "description": "Lines of code used in each file of a code base.", "type": "array", @@ -10,6 +10,9 @@ "file": { "type": "string" }, + "path": { + "type": "string" + }, "regions": { "type": "array", "items": { diff --git a/codebasin/util.py b/codebasin/util.py index 8d31b39..a8394a2 100644 --- a/codebasin/util.py +++ b/codebasin/util.py @@ -141,7 +141,7 @@ def _validate_json(json_object: object, schema_name: str) -> bool: schema_paths = { "compiledb": "schema/compilation-database.schema", "config": "schema/config.schema", - "coverage": "schema/coverage-0.1.0.schema", + "coverage": "schema/coverage-0.2.0.schema", "importcfg": "schema/importcfg.schema", } if schema_name not in schema_paths.keys():