Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🌿 ✨ [Scheduled] Upgrade Fern Go SDK Generator: (go-sdk) #103

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

fern-api[bot]
Copy link
Contributor

@fern-api fern-api bot commented Nov 25, 2024

Upgrading from 0.31.2 to 0.35.1 - Changelog

    0.35.1
  • fix: Fixes an issue where the delimiter length was included during stream data read, even when the delimiter was missing, leading to a bufio.ErrAdvanceTooFar error

  • 0.35.0

  • feat: Add runtime validation for discriminated unions to prevent users from accidentally sending the wrong type of value. With this, users will be expected to set exactly one of the union's values like so:

    type Animal struct {
      Type string
      Cat  *Cat
      Dog  *Dog
    }
    func do() {
      union := &Animal{
        Cat: &Cat{
          Name: "Fluffy",
        },
      }
    } ```
    If the user sets _both_ `Cat` and `Dog`, the user will receive an error when the type is serialized to JSON (i.e. in the `json.Marshaler` implementation).
    </li>
    
    <strong><code>0.34.0</code></strong>
    <li>
    
    <code>feat:</code> Add support for sending the `User-Agent` header on every request. Go packages are uniquely identified by their full module path, so the `User-Agent` header is generated in the `<module>/<version>` format, e.g.
    ``` User-Agent: github.com/acme/acme-go/1.0.0 ```
    </li>
    
    <strong><code>0.33.0</code></strong>
    <li>
    
    <code>feat:</code> Add support for the `inlinePathParameters` configuration option, which generates path parameters in the generated request type (if any) instead of as separate positional parameters.
    ```yaml # generators.yml
    - name: fern-api/fern-go-sdk
      version: 0.33.0
      config:
        inlinePathParameters: true
  • 0.32.1

  • internal: Improve the aesthetics of the generated code, and reduce the amount of repetition in each of the generated endpoints. This change has zero impact on the behavior of the generated SDK.

  • 2 additional updates, see more

    0.32.0

  • feat: Add support for the inlineFileProperties configuration option, which generates file properties in the generated request type instead of as separate positional parameters.

    - name: fern-api/fern-go-sdk
      version: 0.32.0
      config:
        inlineFileProperties: true
  • fix: Fixes an issue where the new core.MultipartWriter was generated for SDKs that didn't define any file upload endpoints.

  • internal: Simplify the generated code from the new core.MultipartWriter introduced in 0.29.0 by refactoring internal.WithMultipartContentType as internal.WithDefaultContentType.

  • 0.31.3

  • fix: Updates the retrier to stop retrying on 409 Conflict HTTP status codes by default.

Copy link

@fern-api fern-api bot force-pushed the fern/update/fern-go-sdk@go-sdk branch from 4d5272a to 74b8253 Compare December 2, 2024 00:08
Copy link

github-actions bot commented Dec 2, 2024

@fern-api fern-api bot force-pushed the fern/update/fern-go-sdk@go-sdk branch from 74b8253 to ff28c97 Compare December 9, 2024 00:07
Copy link

github-actions bot commented Dec 9, 2024

@fern-api fern-api bot force-pushed the fern/update/fern-go-sdk@go-sdk branch from ff28c97 to 192bdb9 Compare December 16, 2024 00:08
Copy link

@fern-api fern-api bot force-pushed the fern/update/fern-go-sdk@go-sdk branch from 192bdb9 to 5c4a354 Compare December 23, 2024 00:06
Copy link

@fern-api fern-api bot force-pushed the fern/update/fern-go-sdk@go-sdk branch from 5c4a354 to 42883da Compare January 6, 2025 00:06
Copy link

github-actions bot commented Jan 6, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants