Files
aperture/pricesrpc/check-rest-annotations.sh
Olaoluwa Osuntokun 520e40dedc build: properly add check-rest-annotations.sh
The builds fails otherwise. The Makefile has also been modified to use
the proper path here.
2023-06-14 20:13:12 -05:00

12 lines
259 B
Bash
Executable File

#!/bin/bash
for proto in $(find . -name "*.proto"); do
for rpc in $(awk '/ rpc /{print $2}' "$proto"); do
yaml=${proto%%.proto}.yaml
if ! grep -q "$rpc" "$yaml"; then
echo "RPC $rpc not added to $yaml file"
exit 1
fi
done
done