From 4acea896e459e684f7fdaf5f05373af004dbd7b0 Mon Sep 17 00:00:00 2001 From: Alexis Rico Date: Thu, 30 Nov 2023 13:29:47 +0100 Subject: [PATCH] Update Makefile Co-authored-by: Andrew Farries --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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