Adjust workflow for correct module generation
Some checks failed
Generate and Release Protos / release (push) Failing after 23s

This commit is contained in:
2026-01-07 18:23:17 +00:00
parent b29f42c004
commit ac3124ff14
2 changed files with 17 additions and 20 deletions

View File

@@ -14,9 +14,8 @@ for file in $FILES; do
# Get a clean name (e.g., data-ingress_pis-mapping)
clean_name=$(echo "${file#schemas/}" | sed 's/\//_/g' | sed 's/\.json//g')
# Output to one folder and add to index
# OGenerate TS
npx --yes json-schema-to-typescript "$file" > "gen/ts/${clean_name}.ts"
echo "export * from './${clean_name}.js';" >> gen/ts/index.ts
# Generate Go
go-jsonschema -p models "$file" > "gen/go/models/${clean_name}.go"