17 lines
391 B
Makefile
17 lines
391 B
Makefile
#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
|