Skip to content

Commit dc2a640

Browse files
fern-supportdevin-ai-integration[bot]dannysheridanjon-fern
authored
Dannysheridan devin/1760641845 update generators config (#742)
* Update generators.yml: comment out java-sdk, add php-sdk and swift-sdk, remove node from typescript SDK name Co-Authored-By: [email protected] <[email protected]> * Update Swift SDK config: use clientClassName and add moduleName and environmentEnumName Co-Authored-By: [email protected] <[email protected]> * Add GitHub Actions workflows for Swift and PHP SDK publishing Co-Authored-By: [email protected] <[email protected]> * Simplify Swift and PHP SDK workflows to match cleaner pattern Co-Authored-By: [email protected] <[email protected]> * Updated openapi sepc * changed fern-typescript-node-sdk to fern-typescript-sdk * Took the spec from main * Adjusting openapi spec so TS SDK preview passes * Ignore a parameter to root cause the TS SDK preview not passing * moved type to schema component * Moved spec changes to overrides file * Using x-fern-type-name to set the type name * Added x-fern-type-name in the spec * Adding enableInlineTypes to generators * Removed x-fern-type-name --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: [email protected] <[email protected]> Co-authored-by: Danny Sheridan <[email protected]> Co-authored-by: fern-support <[email protected]>
1 parent c4d78b8 commit dc2a640

File tree

5 files changed

+93
-22
lines changed

5 files changed

+93
-22
lines changed

.github/workflows/preview-sdks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
env:
3131
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
3232
run: |
33-
cd fern/apis/api/.preview/fern-typescript-node-sdk
33+
cd fern/apis/api/.preview/fern-typescript-sdk
3434
yarn install
3535
yarn build
3636
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release PHP SDK
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "The version of the PHP SDK that you would like to release"
8+
required: true
9+
type: string
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repo
16+
uses: actions/checkout@v4
17+
18+
- name: Download Fern
19+
run: npm install -g fern-api
20+
21+
- name: Release PHP SDK
22+
env:
23+
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
24+
run: |
25+
fern generate --group php-sdk --version ${{ inputs.version }} --log-level debug
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release Swift SDK
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: "The version of the Swift SDK that you would like to release"
8+
required: true
9+
type: string
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repo
16+
uses: actions/checkout@v4
17+
18+
- name: Download Fern
19+
run: npm install -g fern-api
20+
21+
- name: Release Swift SDK
22+
env:
23+
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}
24+
run: |
25+
fern generate --group swift-sdk --version ${{ inputs.version }} --log-level debug

fern/apis/api/generators.yml

Lines changed: 41 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ groups:
2727
client_class_name: Vapi
2828
ts-sdk:
2929
generators:
30-
- name: fernapi/fern-typescript-node-sdk
30+
- name: fernapi/fern-typescript-sdk
3131
version: 2.10.1
3232
api:
3333
settings:
@@ -45,25 +45,26 @@ groups:
4545
includeApiReference: true
4646
noSerdeLayer: true
4747
omitUndefined: true
48+
enableInlineTypes: false
4849
smart-casing: true
49-
java-sdk:
50-
generators:
51-
- name: fernapi/fern-java-sdk
52-
version: 2.43.3
53-
disable-examples: true
54-
output:
55-
location: maven
56-
coordinate: dev.vapi:server-sdk
57-
username: ${MAVEN_USERNAME}
58-
password: ${MAVEN_PASSWORD}
59-
signature:
60-
keyId: ${MAVEN_CENTRAL_SECRET_KEY_KEY_ID}
61-
password: ${MAVEN_CENTRAL_SECRET_KEY_PASSWORD}
62-
secretKey: ${MAVEN_CENTRAL_SECRET_KEY}
63-
github:
64-
repository: VapiAI/server-sdk-java
65-
config:
66-
client-class-name: Vapi
50+
# java-sdk:
51+
# generators:
52+
# - name: fernapi/fern-java-sdk
53+
# version: 2.43.3
54+
# disable-examples: true
55+
# output:
56+
# location: maven
57+
# coordinate: dev.vapi:server-sdk
58+
# username: ${MAVEN_USERNAME}
59+
# password: ${MAVEN_PASSWORD}
60+
# signature:
61+
# keyId: ${MAVEN_CENTRAL_SECRET_KEY_KEY_ID}
62+
# password: ${MAVEN_CENTRAL_SECRET_KEY_PASSWORD}
63+
# secretKey: ${MAVEN_CENTRAL_SECRET_KEY}
64+
# github:
65+
# repository: VapiAI/server-sdk-java
66+
# config:
67+
# client-class-name: Vapi
6768
go-sdk:
6869
generators:
6970
- name: fernapi/fern-go-sdk
@@ -109,3 +110,24 @@ groups:
109110
inline-path-parameters: false
110111
simplify-object-dictionaries: true
111112
use-discriminated-unions: false
113+
php-sdk:
114+
generators:
115+
- name: fernapi/fern-php-sdk
116+
version: 1.17.1
117+
disable-examples: true
118+
github:
119+
repository: VapiAI/server-sdk-php
120+
config:
121+
namespace: Vapi
122+
client-class-name: VapiClient
123+
swift-sdk:
124+
generators:
125+
- name: fernapi/fern-swift-sdk
126+
version: 0.18.0
127+
disable-examples: true
128+
github:
129+
repository: VapiAI/server-sdk-swift
130+
config:
131+
clientClassName: VapiClient
132+
moduleName: Vapi
133+
environmentEnumName: VapiEnvironment

fern/apis/api/openapi.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -911,8 +911,7 @@
911911
"eq": "2",
912912
"gt": "1"
913913
}
914-
},
915-
"type": "object"
914+
}
916915
}
917916
},
918917
{

0 commit comments

Comments
 (0)