Skip to content

fix(csharp): Fix bug where a lambda for sending HTTP requests would use the HTTP request from the outer scope instead of the local scope #13592

fix(csharp): Fix bug where a lambda for sending HTTP requests would use the HTTP request from the outer scope instead of the local scope

fix(csharp): Fix bug where a lambda for sending HTTP requests would use the HTTP request from the outer scope instead of the local scope #13592

Workflow file for this run

name: Seed Snapshot Tests
on:
push:
branches:
- main
paths:
- '.github/workflows/seed.yml'
- 'packages/seed/**'
- 'packages/ir-sdk/fern/apis/**'
- 'packages/cli/generation/ir-generator/**'
- 'test-definitions/**'
- 'test-definitions-openapi/**'
- 'generators/**'
- 'seed/**'
pull_request:
branches:
- main
paths:
- '.github/workflows/seed.yml'
- 'packages/seed/**'
- 'packages/ir-sdk/fern/apis/**'
- 'packages/cli/generation/ir-generator/**'
- 'test-definitions/**'
- 'test-definitions-openapi/**'
- 'generators/**'
- 'seed/**'
workflow_call:
# Cancel previous workflows on previous push
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
changes:
runs-on: ubuntu-latest
outputs:
seed: ${{ steps.filter.outputs.seed }}
ruby: ${{ steps.filter.outputs.ruby }}
openapi: ${{ steps.filter.outputs.openapi }}
python: ${{ steps.filter.outputs.python }}
postman: ${{ steps.filter.outputs.postman }}
java: ${{ steps.filter.outputs.java }}
typescript: ${{ steps.filter.outputs.typescript }}
go: ${{ steps.filter.outputs.go }}
csharp: ${{ steps.filter.outputs.csharp }}
php: ${{ steps.filter.outputs.php }}
steps:
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
seed:
- '.github/workflows/seed.yml'
- 'packages/seed/**'
- 'packages/ir-sdk/fern/apis/**'
- 'packages/cli/generation/ir-generator/**'
- 'test-definitions/**'
- 'test-definitions-openapi/**'
ruby:
- 'generators/ruby/**'
- 'seed/ruby-sdk/**'
- 'seed/ruby-model/**'
openapi:
- 'generators/openapi/**'
- 'seed/openapi/**'
python:
- 'generators/python/**'
- 'seed/pydantic/**'
- 'seed/python-sdk/**'
- 'seed/fastapi/**'
postman:
- 'generators/postman/**'
- 'seed/postman/**'
java:
- 'generators/java/**'
- 'seed/java-sdk/**'
- 'seed/java-model/**'
- 'seed/java-spring/**'
typescript:
- 'generators/typescript/**'
- 'seed/ts-sdk/**'
- 'seed/ts-express/**'
go:
- 'generators/go/**'
- 'seed/go-sdk/**'
- 'seed/go-model/**'
- 'seed/go-fiber/**'
csharp:
- 'generators/csharp/**'
- 'seed/csharp-sdk/**'
- 'seed/csharp-model/**'
php:
- 'generators/php/**'
- 'seed/php-sdk/**'
- 'seed/php-model/**'
ruby-model:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.ruby == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: ruby-model
generator-path: generators/ruby
ruby-sdk:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.ruby == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: ruby-sdk
generator-path: generators/ruby
pydantic-model:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.python == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: pydantic
generator-path: generators/python
python-sdk:
runs-on: Seed
needs: changes
if: ${{ needs.changes.outputs.python == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: python-sdk
generator-path: generators/python
fastapi:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.python == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: fastapi
generator-path: generators/python
openapi:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.openapi == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: openapi
generator-path: generators/openapi
postman:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.postman == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: postman
generator-path: generators/postman
java-sdk:
runs-on: Seed
needs: changes
if: ${{ needs.changes.outputs.java == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: java-sdk
generator-path: generators/java
java-model:
runs-on: Seed
needs: changes
if: ${{ needs.changes.outputs.java == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: java-model
generator-path: generators/java
java-spring:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.java == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: java-spring
generator-path: generators/java
typescript-sdk:
runs-on: Seed
needs: changes
if: ${{ (needs.changes.outputs.typescript == 'true' || needs.changes.outputs.seed == 'true') && github.repository == 'fern-api/fern' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: ts-sdk
generator-path: generators/typescript
typescript-express:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.typescript == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: ts-express
generator-path: generators/typescript
go-fiber:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.go == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: go-fiber
generator-path: generators/go
go-model:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.go == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: go-model
generator-path: generators/go
go-sdk:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.go == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: go-sdk
generator-path: generators/go
csharp-model:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.csharp == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: csharp-model
generator-path: generators/csharp
csharp-sdk:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.csharp == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: csharp-sdk
generator-path: generators/csharp
php-model:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.php == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: php-model
generator-path: generators/php
php-sdk:
runs-on: ubuntu-latest
needs: changes
if: ${{ needs.changes.outputs.php == 'true' || needs.changes.outputs.seed == 'true' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Run seed
uses: ./.github/actions/cached-seed
with:
generator-name: php-sdk
generator-path: generators/php