This repository was archived by the owner on Nov 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,6 @@ PYTEST = pytest
88EMAIL = "mahtin@mahtin.com"
99NAME = "cloudflare"
1010
11- OPENAPI_URL = "https://github.com/cloudflare/api-schemas/raw/main/openapi.json"
12-
1311# all: README.rst CHANGELOG.md build
1412all : CHANGELOG.md build
1513
@@ -108,7 +106,7 @@ lint:
108106openapi :
109107 @tmp=/tmp/_$$$$ _ ; \
110108 $(PYTHON ) -m cli4 --dump | sort > $$ tmp.1 ; \
111- $(PYTHON ) -m cli4 --openapi $( OPENAPI_URL ) | tee $$ tmp.5 | sed -e ' s/^[A-Z][A-Z]* *//' -e ' s/?.*//' -e ' s/\/:[a-z][A-Za-z_]*/\/:id/g' -e ' s/\/:[a-z][A-Za-z_]*}/\/:id/g' -e ' s/:id\/:id/:id/' -e ' s/\/:id$$//' -e ' s/\/:id$$//' -e ' s/\/:id ;/ ;/' -e ' s/ ; Content-Type: .*//' -e ' s/\/$$//' | sort -u > $$ tmp.2 ; \
109+ $(PYTHON ) -m cli4 --openapi ' ' | tee $$ tmp.5 | sed -e ' s/^[A-Z][A-Z]* *//' -e ' s/?.*//' -e ' s/\/:[a-z][A-Za-z_]*/\/:id/g' -e ' s/\/:[a-z][A-Za-z_]*}/\/:id/g' -e ' s/:id\/:id/:id/' -e ' s/\/:id$$//' -e ' s/\/:id$$//' -e ' s/\/:id ;/ ;/' -e ' s/ ; Content-Type: .*//' -e ' s/\/$$//' | sort -u > $$ tmp.2 ; \
112110 egrep -v ' ; deprecated' < $$ tmp.2 | sed -e ' s/ ; .*//' | diff $$ tmp.1 - > $$ tmp.3 ; \
113111 echo " In code:" ; \
114112 egrep ' < ' < $$ tmp.3 | sed -e ' s/< / /' | sort | tee $$ tmp.4 ; \
You can’t perform that action at this time.
0 commit comments