2 Commits

Author SHA1 Message Date
48f1a31378 Remove reference to other schema, it seems that I can either configure it for TS or Go generation, but not both.
All checks were successful
Generate and Release Protos / release (push) Successful in 38s
2026-05-03 00:38:48 +01:00
376370c729 Fix incorrect path
Some checks failed
Generate and Release Protos / release (push) Failing after 32s
2026-05-03 00:32:10 +01:00
2 changed files with 2 additions and 2 deletions

View File

@@ -218,7 +218,7 @@
} }
}, },
"pis": { "pis": {
"$ref": "./schemas/api/pis-object.json" "description": "PIS data for the service (if available)"
} }
} }
} }

View File

@@ -15,7 +15,7 @@ for file in $FILES; do
clean_name=$(echo "${file#schemas/}" | sed 's/\//_/g' | sed 's/\.json//g') clean_name=$(echo "${file#schemas/}" | sed 's/\//_/g' | sed 's/\.json//g')
# OGenerate TS # OGenerate TS
npx --yes json-schema-to-typescript "$file" > "../../../gen/ts/${clean_name}.ts" npx --yes json-schema-to-typescript "$file" > "./gen/ts/${clean_name}.ts"
# Generate Go # Generate Go
go-jsonschema -p contracts "$file" > "./gen/go/models/${clean_name}.go" go-jsonschema -p contracts "$file" > "./gen/go/models/${clean_name}.go"