server/justfile

18 lines
391 B
Makefile
Raw Normal View History

#Generate OpenAPI types
openapi:
openapi-generator-cli generate -i ./openapi/api/server.yaml -g rust-axum -o ./openapi/module
#Add OpenAPI submodule
submodule-init:
git submodule update --init --recursive
#Update OpenAPI contract
submodule-update:
git submodule update --remote
#Add OpenAPI submodule & generate OpenAPI types
init:
submodule-init openapi
alias default := init