Skip to content

Commit 727c12f

Browse files
authored
chore: update oai (#276)
1 parent 58164e3 commit 727c12f

File tree

3 files changed

+12485
-8147
lines changed

3 files changed

+12485
-8147
lines changed

.github/workflows/update-openapi.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,8 @@ jobs:
1414

1515
- name: Fetch OpenAPI specification
1616
run: |
17-
curl -s https://api.vapi.ai/api-json > temp-openapi.json
18-
19-
- name: Verify JSON validity
20-
run: |
21-
cat temp-openapi.json | jq . > /dev/null
22-
if [ $? -ne 0 ]; then
23-
echo "Error: Invalid JSON received from API endpoint"
24-
exit 1
25-
fi
26-
mv temp-openapi.json ./fern/apis/api/openapi.json
17+
npm install -g fern-api
18+
fern api update
2719
2820
- name: Check for changes
2921
id: check_changes

0 commit comments

Comments
 (0)