mirror of
https://github.com/netbirdio/netbird.git
synced 2026-07-16 11:39:57 +00:00
* [management] sync openapi spec and test for diff on workflows * [management] pin oapi-codegen version to v2.7.1
17 lines
348 B
Bash
Executable File
17 lines
348 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
if ! which realpath > /dev/null 2>&1
|
|
then
|
|
echo realpath is not installed
|
|
echo run: brew install coreutils
|
|
exit 1
|
|
fi
|
|
|
|
old_pwd=$(pwd)
|
|
script_path=$(dirname $(realpath "$0"))
|
|
cd "$script_path"
|
|
go install github.com/oapi-codegen/oapi-codegen/v2/cmd/oapi-codegen@v2.7.1
|
|
oapi-codegen --config cfg.yaml openapi.yml
|
|
cd "$old_pwd"
|