Skip to content

Commit 9a66279

Browse files
update schema and types
1 parent a2ef549 commit 9a66279

3 files changed

Lines changed: 16 additions & 4 deletions

File tree

comcheck_api/schemas/comCheck.schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2248,7 +2248,7 @@
22482248
"description": "Fixture schedules",
22492249
"type": "array",
22502250
"items": {
2251-
"$ref": "comCheck.schema.json/#definitions/FixtureSchedule"
2251+
"$ref": "comCheck.schema.json#/definitions/FixtureSchedule"
22522252
}
22532253
}
22542254
},

comcheck_api/types/core_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# generated by datamodel-codegen:
22
# filename: comCheck.schema.json
3-
# timestamp: 2026-03-06T00:03:38+00:00
3+
# timestamp: 2026-06-10T04:00:05+00:00
44

55
from __future__ import annotations
66

tools/fetch_comcheck_schema.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
#!/usr/bin/env bash (maintainer use only)
1+
#!/usr/bin/env bash
2+
#
3+
# (maintainer use only)
24
#
35
# Fetch the COMcheck JSON schema from a git repo (sparse-checkout) and
46
# regenerate the SDK's TypedDict types from it.
@@ -16,9 +18,19 @@
1618
# Example:
1719
# REPO_SSH=ssh://git@example.org/path/to/comcheck-schema.git \
1820
# ./tools/fetch_comcheck_schema.sh
19-
2021
set -euo pipefail
2122

23+
# Load REPO_SSH (and any other vars) from a .env file at the repo root if present,
24+
# without clobbering values already set in the environment.
25+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
26+
ENV_FILE="${ENV_FILE:-$SCRIPT_DIR/../.env}"
27+
if [[ -f "$ENV_FILE" ]]; then
28+
set -a
29+
# shellcheck disable=SC1090
30+
source "$ENV_FILE"
31+
set +a
32+
fi
33+
2234
REPO_SSH="${REPO_SSH:?REPO_SSH must be set, e.g. REPO_SSH=ssh://git@host/path/to/comcheck-schema.git}"
2335
BRANCH="${BRANCH:-main}"
2436
PATH_IN_REPO="${PATH_IN_REPO:-comCheck.schema.json}"

0 commit comments

Comments
 (0)