summaryrefslogtreecommitdiffstats
path: root/python_openapi_client
diff options
context:
space:
mode:
Diffstat (limited to 'python_openapi_client')
-rwxr-xr-xpython_openapi_client/codegen_python_client.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/python_openapi_client/codegen_python_client.sh b/python_openapi_client/codegen_python_client.sh
index c602bc19..aab3bddb 100755
--- a/python_openapi_client/codegen_python_client.sh
+++ b/python_openapi_client/codegen_python_client.sh
@@ -9,7 +9,8 @@ set -o pipefail
OUTPUT=`pwd`/codegen-out
mkdir -p $OUTPUT
# Strip tags, so entire API is under a single class
-cat ../fatcat-openapi2.yml | grep -v "TAGLINE$" > $OUTPUT/api.yml
+# Also strip long part of description so it doesn't clutter source headers
+cat ../fatcat-openapi2.yml | grep -v "TAGLINE$" | perl -0777 -pe "s/<\!-- STARTLONGDESCRIPTION -->.*<\!-- ENDLONGDESCRIPTION -->//s" > $OUTPUT/api.yml
docker run \
-v $OUTPUT:/tmp/swagger/ \