From 180886fd68b22a475f99e40b620f03293574d05a Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Sun, 3 May 2026 00:30:46 +0100 Subject: [PATCH] Adjust script & paths so that referencing other schemas work --- schemas/api/trains/TrainDetails.json | 2 +- scripts/build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/schemas/api/trains/TrainDetails.json b/schemas/api/trains/TrainDetails.json index 8c4046a..000bbf1 100644 --- a/schemas/api/trains/TrainDetails.json +++ b/schemas/api/trains/TrainDetails.json @@ -218,7 +218,7 @@ } }, "pis": { - "$ref": "../pis-object.json" + "$ref": "./schemas/api/pis-object.json" } } } \ No newline at end of file diff --git a/scripts/build.sh b/scripts/build.sh index aa5a5f8..8c7ab90 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -18,7 +18,7 @@ for file in $FILES; do npx --yes json-schema-to-typescript "$file" > "../../../gen/ts/${clean_name}.ts" # Generate Go - go-jsonschema -p contracts "$file" > "gen/go/models/${clean_name}.go" + go-jsonschema -p contracts "$file" > "./gen/go/models/${clean_name}.go" done echo "✅ Generated single TS package in gen/ts"