Skip to content

Commit 441ba27

Browse files
add project field to metric schema (#158)
--------- Co-authored-by: Jannis Mittenzwei <[email protected]>
1 parent 3aa0a59 commit 441ba27

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

metrics-schema/metrics_schema.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
class Metrics(BaseModel):
1919
"""This schema defines the structure and values for reporting Q/A metrics for projects."""
2020

21+
project: str = Field(
22+
description=(
23+
"Project Name Corresponding to the metrics."
24+
)
25+
)
2126
commit: str = Field(
2227
description=(
2328
"Commit-Hash pointing to the state of the codebase used for generating the metrics."
@@ -47,7 +52,7 @@ class Metrics(BaseModel):
4752
if __name__ == "__main__":
4853
schema = {
4954
"$schema": "https://json-schema.org/draft/2020-12/schema",
50-
"$id": "https://schemas.exasol.com/project-metrics-0.1.0.json",
55+
"$id": "https://schemas.exasol.com/project-metrics-0.2.0.json",
5156
}
5257
schema.update(Metrics.model_json_schema())
5358
print(json.dumps(schema, indent=2))

0 commit comments

Comments
 (0)