summaryrefslogtreecommitdiffstats
path: root/python/codegen_python_client.sh
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-09-22 17:32:35 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-09-22 17:40:52 -0700
commitac1cbadf4d9a0374e6983df481549cc28a09a910 (patch)
tree4f8620f0e46a0bf70daf0047db4308cef3c7a305 /python/codegen_python_client.sh
parent2eedc871a71e83b126f98ca5915a463a8cd50ccc (diff)
downloadfatcat-ac1cbadf4d9a0374e6983df481549cc28a09a910.tar.gz
fatcat-ac1cbadf4d9a0374e6983df481549cc28a09a910.zip
update python codegen
Strip out TAGLINE (tag-related) lines from spec, so we don't get many small Api classes (just one top-level). Ugh.
Diffstat (limited to 'python/codegen_python_client.sh')
-rwxr-xr-xpython/codegen_python_client.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/codegen_python_client.sh b/python/codegen_python_client.sh
index 3cf79810..4cd30c44 100755
--- a/python/codegen_python_client.sh
+++ b/python/codegen_python_client.sh
@@ -5,7 +5,8 @@ set -o pipefail
OUTPUT=`pwd`/codegen-out
mkdir -p $OUTPUT
-cp ../fatcat-openapi2.yml $OUTPUT/api.yml
+# Strip tags, so entire API is under a single class
+cat ../fatcat-openapi2.yml | grep -v "TAGLINE$" > $OUTPUT/api.yml
docker run \
-v $OUTPUT:/tmp/swagger/ \