summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fatcat-openapi2.yml3
-rwxr-xr-xpython/codegen_python_client.sh2
2 files changed, 2 insertions, 3 deletions
diff --git a/fatcat-openapi2.yml b/fatcat-openapi2.yml
index fe1cf3e2..4027ccf4 100644
--- a/fatcat-openapi2.yml
+++ b/fatcat-openapi2.yml
@@ -5,8 +5,7 @@ info:
description: A scalable, versioned, API-oriented catalog of bibliographic entities
and file metadata
version: 0.1.0
-# Actually HTTPS in QA and production
-schemes: [http]
+schemes: [https]
basePath: /v0
#host: api.fatcat.wiki
consumes:
diff --git a/python/codegen_python_client.sh b/python/codegen_python_client.sh
index 4cd30c44..f99986bb 100755
--- a/python/codegen_python_client.sh
+++ b/python/codegen_python_client.sh
@@ -6,7 +6,7 @@ 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
+cat ../fatcat-openapi2.yml | grep -v "TAGLINE$" | sed 's/\[https\]/\[http\]/g' > $OUTPUT/api.yml
docker run \
-v $OUTPUT:/tmp/swagger/ \