File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 },
Original file line number Diff line number Diff line change 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
55from __future__ import annotations
66
Original file line number Diff line number Diff line change 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.
1618# Example:
1719# REPO_SSH=ssh://git@example.org/path/to/comcheck-schema.git \
1820# ./tools/fetch_comcheck_schema.sh
19-
2021set -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+
2234REPO_SSH=" ${REPO_SSH:? REPO_SSH must be set, e.g. REPO_SSH=ssh:// git@ host/ path/ to/ comcheck-schema.git} "
2335BRANCH=" ${BRANCH:- main} "
2436PATH_IN_REPO=" ${PATH_IN_REPO:- comCheck.schema.json} "
You can’t perform that action at this time.
0 commit comments