Skip to content

Conversation

fern-api[bot]
Copy link
Contributor

@fern-api fern-api bot commented Dec 16, 2024

Upgrading from 0.33.0 to 0.35.0 - Changelog

    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>
    </ul>
    </dd>
    </dl>

@fern-api fern-api bot force-pushed the fern/update/fern-go-sdk@api/go-sdk branch from 07d67cb to 29bb1c4 Compare December 16, 2024 00:07
Copy link
Contributor

@fern-api fern-api bot force-pushed the fern/update/fern-go-sdk@api/go-sdk branch from 29bb1c4 to 96efb83 Compare December 23, 2024 00:05
Copy link
Contributor

@fern-api fern-api bot force-pushed the fern/update/fern-go-sdk@api/go-sdk branch from 96efb83 to 10b7cef Compare December 30, 2024 00:05
Copy link
Contributor

@fern-support fern-support merged commit 3ca7e70 into main Dec 31, 2024
4 checks passed
skeptrunedev referenced this pull request in devflowinc/vapi-docs Mar 5, 2025
Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com>
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.

1 participant