2024-05-30 18:15:52 +02:00
|
|
|
#Generate OpenAPI types
|
2024-05-30 17:25:42 +02:00
|
|
|
openapi:
|
|
|
|
openapi-generator-cli generate -i ./openapi/api/server.yaml -g rust-axum -o ./openapi/module
|
2024-05-30 18:15:52 +02:00
|
|
|
|
|
|
|
#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
|