Adjust script & paths so that referencing other schemas work
Some checks failed
Generate and Release Protos / release (push) Failing after 28s
Some checks failed
Generate and Release Protos / release (push) Failing after 28s
This commit is contained in:
@@ -218,7 +218,7 @@
|
||||
}
|
||||
},
|
||||
"pis": {
|
||||
"$ref": "../pis-object.json"
|
||||
"$ref": "./schemas/api/pis-object.json"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user