Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit b2c3eaa

Browse files
committed
move OPENAPI_URL into code where it belongs
1 parent e8ba3e3 commit b2c3eaa

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Makefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ PYTEST = pytest
88
EMAIL = "mahtin@mahtin.com"
99
NAME = "cloudflare"
1010

11-
OPENAPI_URL = "https://github.com/cloudflare/api-schemas/raw/main/openapi.json"
12-
1311
#all: README.rst CHANGELOG.md build
1412
all: CHANGELOG.md build
1513

@@ -108,7 +106,7 @@ lint:
108106
openapi:
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 ; \

0 commit comments

Comments
 (0)