From 3e3617ef4d574f6516f504326e593c012746d955 Mon Sep 17 00:00:00 2001 From: Deep Singhvi Date: Mon, 23 Jun 2025 23:07:00 -0400 Subject: [PATCH 1/2] upgrade generators and run previews --- .github/workflows/preview-sdks.yml | 59 ++++++++++++++++++++++++++++++ fern/apis/api/generators.yml | 23 +++--------- 2 files changed, 65 insertions(+), 17 deletions(-) diff --git a/.github/workflows/preview-sdks.yml b/.github/workflows/preview-sdks.yml index b42d6390..07e63700 100644 --- a/.github/workflows/preview-sdks.yml +++ b/.github/workflows/preview-sdks.yml @@ -98,3 +98,62 @@ jobs: cd fern/apis/api/.preview/fern-go-sdk go mod tidy go build ./... + + + preview-csharp: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Setup node + uses: actions/setup-node@v3 + + - name: Download Fern + run: npm install -g fern-api + + - name: Preview C# SDK + env: + FERN_TOKEN: ${{ secrets.FERN_TOKEN }} + run: | + fern generate --api api --group csharp-sdk --preview --log-level debug + + - name: Set up .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '8.0.x' + + - name: Compile + run: | + cd fern/apis/api/.preview/fern-csharp-sdk + dotnet restore + dotnet build + + preview-java: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v4 + + - name: Setup node + uses: actions/setup-node@v3 + + - name: Download Fern + run: npm install -g fern-api + + - name: Preview Java SDK + env: + FERN_TOKEN: ${{ secrets.FERN_TOKEN }} + run: | + fern generate --api api --group java-sdk --preview --log-level debug + + - name: Set up Java + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: '17' + + - name: Compile + run: | + cd fern/apis/api/.preview/fern-java-sdk + ./gradlew build \ No newline at end of file diff --git a/fern/apis/api/generators.yml b/fern/apis/api/generators.yml index c455a30f..ab4056c5 100644 --- a/fern/apis/api/generators.yml +++ b/fern/apis/api/generators.yml @@ -11,7 +11,7 @@ groups: python-sdk: generators: - name: fernapi/fern-python-sdk - version: 4.21.4 + version: 4.22.0 api: settings: unions: v1 @@ -28,7 +28,7 @@ groups: ts-sdk: generators: - name: fernapi/fern-typescript-node-sdk - version: 0.51.3 + version: 1.8.1 api: settings: unions: v1 @@ -40,17 +40,11 @@ groups: repository: VapiAI/server-sdk-typescript config: namespaceExport: Vapi - allowCustomFetcher: true - skipResponseValidation: true - includeApiReference: true - noSerdeLayer: true - omitUndefined: true smart-casing: true java-sdk: generators: - name: fernapi/fern-java-sdk - version: 2.37.0 - disable-examples: true + version: 2.37.2 output: location: maven coordinate: dev.vapi:server-sdk @@ -63,20 +57,16 @@ groups: go-sdk: generators: - name: fernapi/fern-go-sdk - version: 0.37.4 - disable-examples: true + version: 1.2.0 api: settings: unions: v1 github: repository: VapiAI/server-sdk-go - config: - union: v1 ruby-sdk: generators: - name: fernapi/fern-ruby-sdk - version: 0.9.0-rc2 - disable-examples: true + version: 0.8.2 github: repository: VapiAI/server-sdk-ruby output: @@ -88,8 +78,7 @@ groups: csharp-sdk: generators: - name: fernapi/fern-csharp-sdk - version: 1.18.0 - disable-examples: true + version: 2.0.0 github: repository: VapiAI/server-sdk-csharp output: From 0adc6b1f49760b5e00181363fb59c61531385c27 Mon Sep 17 00:00:00 2001 From: Deep Singhvi Date: Mon, 23 Jun 2025 23:12:16 -0400 Subject: [PATCH 2/2] try again --- .github/workflows/preview-sdks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/preview-sdks.yml b/.github/workflows/preview-sdks.yml index 07e63700..904f1380 100644 --- a/.github/workflows/preview-sdks.yml +++ b/.github/workflows/preview-sdks.yml @@ -125,7 +125,7 @@ jobs: - name: Compile run: | - cd fern/apis/api/.preview/fern-csharp-sdk + cd fern/apis/api/.preview/fern-csharp-sdk/src dotnet restore dotnet build