From ca8faa346c015052b815a0e613b3ad3e840d2c96 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 13 Sep 2019 11:28:28 -0700 Subject: add description removal to codegen script --- python_openapi_client/codegen_python_client.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'python_openapi_client') 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/ \ -- cgit v1.2.3