Adjust workflow for correct module generation
Some checks failed
Generate and Release Protos / release (push) Failing after 23s
Some checks failed
Generate and Release Protos / release (push) Failing after 23s
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user