Skip to content

Commit aeea6ae

Browse files
committed
Rename root openapi.json to lib-openapi.json
To make it less likely to be confused with server/openapi.json.
1 parent 246249b commit aeea6ae

16 files changed

+19
-19
lines changed

.github/workflows/cli-lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
- 'svix-cli/**'
1414
- 'rust/**'
1515
- '.github/workflows/cli-lint.yml'
16-
- 'openapi.json'
16+
- 'lib-openapi.json'
1717

1818
# When pushing to a PR, cancel any jobs still running for the previous head commit of the PR
1919
concurrency:

.github/workflows/csharp-lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55
paths:
66
- "csharp/**"
7-
- "openapi.json"
7+
- "lib-openapi.json"
88
- '.github/workflows/csharp-lint.yml'
99

1010
jobs:

.github/workflows/go-ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- "go/**"
77
- "go.sum"
88
- "go.mod"
9-
- "openapi.json"
9+
- "lib-openapi.json"
1010
- ".github/workflows/go-ci.yml"
1111

1212
jobs:

.github/workflows/go-lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
pull_request:
44
paths:
55
- "go/**"
6-
- "openapi.json"
6+
- "lib-openapi.json"
77
jobs:
88
build:
99
runs-on: ubuntu-24.04

.github/workflows/java-lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
pull_request:
44
paths:
55
- "java/**"
6-
- "openapi.json"
6+
- "lib-openapi.json"
77
jobs:
88
dotnet:
99
name: Java Lint

.github/workflows/javascript-lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55
paths:
66
- "javascript/**"
7-
- "openapi.json"
7+
- "lib-openapi.json"
88
- '.github/workflows/javascript-lint.yml'
99

1010
jobs:

.github/workflows/javascript-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
branches:
66
- main
77
paths:
8-
- 'openapi.json'
8+
- 'lib-openapi.json'
99
- 'javascript/**'
1010
- '.github/workflows/javascript-release.yml'
1111
workflow_dispatch:

.github/workflows/kotlin-lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55
paths:
66
- "kotlin/**"
7-
- "openapi.json"
7+
- "lib-openapi.json"
88
- '.github/workflows/kotlin-lint.yml'
99

1010
jobs:

.github/workflows/python-lint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ on:
55
- main
66
paths:
77
- "python/**"
8-
- "openapi.json"
8+
- "lib-openapi.json"
99
- ".github/workflows/python-lint.yml"
1010
pull_request:
1111
paths:
1212
- "python/**"
13-
- "openapi.json"
13+
- "lib-openapi.json"
1414
- ".github/workflows/python-lint.yml"
1515
jobs:
1616
build:

.github/workflows/python-tests.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ on:
55
- main
66
paths:
77
- "python/**"
8-
- "openapi.json"
8+
- "lib-openapi.json"
99
- "server/**"
1010
- ".github/workflows/python-tests.yml"
1111
pull_request:
1212
paths:
1313
- "python/**"
14-
- "openapi.json"
14+
- "lib-openapi.json"
1515
- "server/**"
1616
- ".github/workflows/python-tests.yml"
1717
jobs:

.github/workflows/ruby-lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55
paths:
66
- "ruby/**"
7-
- "openapi.json"
7+
- "lib-openapi.json"
88
- '.github/workflows/ruby-lint.yml'
99

1010
jobs:

.github/workflows/rust-lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
paths:
1212
- 'rust/**'
1313
- '.github/workflows/rust-lint.yml'
14-
- "openapi.json"
14+
- "lib-openapi.json"
1515

1616
# When pushing to a PR, cancel any jobs still running for the previous head commit of the PR
1717
concurrency:
File renamed without changes.

python/scripts/generate_openapi.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ else
1010
COMMAND="update"
1111
fi
1212

13-
openapi-python-client $COMMAND --path ../../openapi.json --custom-template-path=../templates --config ../openapi-generator-config.json
13+
openapi-python-client $COMMAND --path ../../lib-openapi.json --custom-template-path=../templates --config ../openapi-generator-config.json
1414

1515
cd internal
1616

17-
touch __init__.py
17+
touch __init__.py

regen_openapi.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
set -exo pipefail
44

55
if [ -n "$1" ]; then
6-
curl "$1" | python -m json.tool > openapi.json
6+
curl "$1" | python -m json.tool > lib-openapi.json
77
fi
88

99
cd $(dirname "$0")
1010
mkdir -p .codegen-tmp
1111
# OpenAPI version has to be overwritten to avoid broken codegen paths in OpenAPI generator.
1212
# Spec version is overwritten to avoid unnecessary diffs on comments. Same for description.
1313
jq --indent 4 '.openapi = "3.0.2" | .info.version = "1.1.1" | del(.info.description)' \
14-
< openapi.json \
14+
< lib-openapi.json \
1515
> .codegen-tmp/openapi.json
1616

1717
# For some languages, write a separate OpenAPI spec file where optional fields

tools/bump_version.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const filesPaths = [
3838
// OpenAPI spec
3939
"server/openapi.json",
4040
// Cloud OpenAPI spec - not necessary but any other time of updating seems weirder
41-
"openapi.json",
41+
"lib-openapi.json",
4242
];
4343

4444
const rootDir = join(__dirname, "..");

0 commit comments

Comments
 (0)