Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion metrics-schema/metrics_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
class Metrics(BaseModel):
"""This schema defines the structure and values for reporting Q/A metrics for projects."""

project: str = Field(
description=(
"Project Name Corresponding to the metrics."
)
)
commit: str = Field(
description=(
"Commit-Hash pointing to the state of the codebase used for generating the metrics."
Expand Down Expand Up @@ -47,7 +52,7 @@ class Metrics(BaseModel):
if __name__ == "__main__":
schema = {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://schemas.exasol.com/project-metrics-0.1.0.json",
"$id": "https://schemas.exasol.com/project-metrics-0.2.0.json",
}
schema.update(Metrics.model_json_schema())
print(json.dumps(schema, indent=2))