diff --git a/Makefile b/Makefile index 8ec93ad0..c1c2c0d5 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ .PHONY: generate generate: # Generate the types from the JSON schema - go-jsonschema --only-models -p migrations --tags json schema.json > pkg/migrations/types.go + docker run -v $$PWD/schema.json:/mnt/schema.json omissis/go-jsonschema:0.14.1 --only-models -p migrations --tags json /mnt/schema.json > pkg/migrations/types.go # Add the license header echo "// SPDX-License-Identifier: Apache-2.0" | cat - pkg/migrations/types.go > pkg/migrations/types.go.tmp