Skip to content

Commit

Permalink
Remove description from openapi.json before using it for codegen (#1641)
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-jplatte authored Jan 16, 2025
2 parents d11eca7 + cc2e5da commit aa2a669
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions regen_openapi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ fi
cd $(dirname "$0")
mkdir -p .codegen-tmp
# OpenAPI version has to be overwritten to avoid broken codegen paths in OpenAPI generator.
# Spec version is overwritten to avoid unnecessary diffs on comments.
jq --indent 4 '.openapi = "3.0.2" | .info.version = "1.1.1"' \
# Spec version is overwritten to avoid unnecessary diffs on comments. Same for description.
jq --indent 4 '.openapi = "3.0.2" | .info.version = "1.1.1" | del(.info.description)' \
< openapi.json \
> .codegen-tmp/openapi.json

Expand Down

0 comments on commit aa2a669

Please sign in to comment.