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.36.4 - Changelog

    0.36.4
  • fix: Fix an issue where the go-v2 generator call prevented the go generator from succeeding in remote code generation environments.

  • 0.36.3

  • fix: Fix an issue where the version header specified by the user wasn't being used.

  • 0.36.2

  • fix: Fix cursor pagination stopping condition when the cursor types do not match (e.g. a *string cursor type with a string next cursor type).

  • 0.36.1

  • fix: Fix offset pagination method generation for non-integer offset parameters (e.g. float64).

  • 0.36.0

  • feat: Adds support for a few new configuration options, all of which are shown below:

      version: 0.36.0
      config:
        packageLayout: flat
        clientName: Acme
        clientConstructorName: New

    With this, the generated SDK will all be deposited at the root of the module, and the client can be constructed like so:

    import (
      "context"
      "fmt"
      "log"
      acme "github.com/acme/acme-go"
    )
    func main() {
      client := acme.New()
      response, err := client.GetUser(
        context.Background(),
        &acme.GetUserRequest{
          ID: "85307b0b-094b-41b5-b61d-347ca15e5da2",
        },
      )
      if err != nil {
        log.Fatal(err)
      }
      fmt.Println(response)
    } ```
    </li>
    <details>
    	<summary><strong>8 additional updates</strong>, see more</summary>
    
    <br/>
    
    	
    <strong><code>0.35.2</code></strong>
    <li>
    
    <code>fix:</code> Fixes an issue where certain literal string values were incorrectly generated in undiscriminated unions.
    </li>
    
    <li>
    
    <code>fix:</code> Fixes an issue where custom names applied to a basic auth scheme were not preserved.
    </li>
    	
    <strong><code>0.35.1</code></strong>
    <li>
    
    <code>fix:</code> 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
    </li>
    	
    <strong><code>0.35.0</code></strong>
    <li>
    
    <code>feat:</code> 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:
    ```go package example
    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.

  • 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

@fern-api fern-api bot force-pushed the fern/update/fern-go-sdk@go-sdk branch from 42883da to 16dbfde Compare January 13, 2025 00:05
Copy link

@fern-api fern-api bot force-pushed the fern/update/fern-go-sdk@go-sdk branch from 16dbfde to c63a061 Compare January 20, 2025 00:06
Copy link

@fern-api fern-api bot force-pushed the fern/update/fern-go-sdk@go-sdk branch from c63a061 to 831cf90 Compare January 27, 2025 00:06
Copy link

@fern-api fern-api bot force-pushed the fern/update/fern-go-sdk@go-sdk branch from 831cf90 to 4fa5d85 Compare February 10, 2025 00:06
Copy link

@fern-api fern-api bot force-pushed the fern/update/fern-go-sdk@go-sdk branch from 4fa5d85 to 1cc835e Compare February 17, 2025 00:07
Copy link

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