We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa51fd5 commit 520e40dCopy full SHA for 520e40d
Makefile
@@ -121,7 +121,7 @@ rpc-format:
121
122
rpc-check: rpc
123
@$(call print, "Verifying protos.")
124
- cd ./pricesrpc; ../scripts/check-rest-annotations.sh
+ cd ./pricesrpc; ../pricesrpc/check-rest-annotations.sh
125
if test -n "$$(git status --porcelain)"; then echo "Protos not properly formatted or not compiled with correct version"; git status; git diff; exit 1; fi
126
127
clean:
pricesrpc/check-rest-annotations.sh
@@ -0,0 +1,11 @@
1
+#!/bin/bash
2
+
3
+for proto in $(find . -name "*.proto"); do
4
+ for rpc in $(awk '/ rpc /{print $2}' "$proto"); do
5
+ yaml=${proto%%.proto}.yaml
6
+ if ! grep -q "$rpc" "$yaml"; then
7
+ echo "RPC $rpc not added to $yaml file"
8
+ exit 1
9
+ fi
10
+ done
11
+done
0 commit comments