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) #80

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 Dec 16, 2024

Upgrading from 0.33.0 to 0.36.2 - Changelog

    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>
    
    <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>
    <details>
    	<summary><strong>2 additional updates</strong>, see more</summary>
    
    <br/>
    
    	
    <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>
    </details></ul>
    </dd>
    </dl>

Copy link

@fern-api fern-api bot force-pushed the fern/update/fern-go-sdk@go-sdk branch from 08d691f to 7d979ad 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 7d979ad to 5e659b8 Compare December 30, 2024 00:07
Copy link

@fern-api fern-api bot force-pushed the fern/update/fern-go-sdk@go-sdk branch from 5e659b8 to 968c69c 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 968c69c to 9e86305 Compare January 13, 2025 00:07
Copy link

@fern-api fern-api bot force-pushed the fern/update/fern-go-sdk@go-sdk branch from 9e86305 to ec3d876 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 ec3d876 to b4220c7 Compare January 27, 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