Skip to content

Commit

Permalink
Update Makefile
Browse files Browse the repository at this point in the history
Co-authored-by: Andrew Farries <[email protected]>
  • Loading branch information
SferaDev and andrew-farries authored Nov 30, 2023
1 parent 2d4bfbc commit 4acea89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 4acea89

Please sign in to comment.