diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-09-06 10:31:40 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-09-06 10:31:40 +0200 |
| commit | 9a9d5c5880095adeb43a045dca638243c8f946e4 (patch) | |
| tree | 86e0d23af339b3139efab15749aaf5b59aa0965b /scripts/validate_api.sh | |
| parent | chore: Initial commit (diff) | |
| download | server-9a9d5c5880095adeb43a045dca638243c8f946e4.zip | |
feat: Provide basic API frame
Diffstat (limited to '')
| -rwxr-xr-x | scripts/validate_api.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/scripts/validate_api.sh b/scripts/validate_api.sh new file mode 100755 index 0000000..056d550 --- /dev/null +++ b/scripts/validate_api.sh @@ -0,0 +1,10 @@ +#! /usr/bin/env sh + +root="$(dirname "$0")/.." +api_path="$root/target/api.json" + +cargo run --package rocie-server -- open-api >"$api_path" + +openapi-generator-cli validate --input-spec "$api_path" --recommend + +# vim: ft=sh |
