Skip to content

Commit

Permalink
Add missing coverage-0.3.0 schema
Browse files Browse the repository at this point in the history
Signed-off-by: John Pennycook <john.pennycook@intel.com>
  • Loading branch information
Pennycook committed Mar 25, 2024
1 parent cb126be commit 57f4ff8
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions codebasin/schema/coverage-0.3.0.schema
Original file line number Diff line number Diff line change
@@ -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"
]
}
}

0 comments on commit 57f4ff8

Please sign in to comment.