Skip to content

Commit

Permalink
Release v0.0.856
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed May 23, 2024
1 parent d266828 commit b1cf5a9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/client_option.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ func (c *ClientOptions) cloneHeader() http.Header {
headers := c.HTTPHeader.Clone()
headers.Set("X-Fern-Language", "Go")
headers.Set("X-Fern-SDK-Name", "github.com/fern-api/generator-exec-go")
headers.Set("X-Fern-SDK-Version", "v0.0.854")
headers.Set("X-Fern-SDK-Version", "v0.0.856")
return headers
}
23 changes: 23 additions & 0 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -1635,6 +1635,25 @@ func (e *EndpointSnippet) Accept(visitor EndpointSnippetVisitor) error {
}
}

// A specific feature with a variety of endpoint examples. This also serves
// the purpose of communicating which endpoints support a particular feature.
type Feature struct {
Endpoints []*Endpoint `json:"endpoints,omitempty"`
}

// Describes all of the features currently supported by the Fern generators.
type Features struct {
Usage *Feature `json:"usage,omitempty"`
Timeouts *Feature `json:"timeouts,omitempty"`
RequestOptions *Feature `json:"requestOptions,omitempty"`
Retries *Feature `json:"retries,omitempty"`
Errors *Feature `json:"errors,omitempty"`
Streaming *Feature `json:"streaming,omitempty"`
// Acts as a catch-all feature so that generators can communicate
// new features without requiring an API change.
Unknown map[string]*Feature `json:"unknown,omitempty"`
}

type GoEndpointSnippet struct {
// A full endpoint snippet, including the client instantiation, e.g.
//
Expand Down Expand Up @@ -1737,7 +1756,11 @@ type Snippets struct {
// The type snippets defined by by the API
Types map[TypeId]string `json:"types,omitempty"`
// The endpoint snippets defined by the API
//
// Deprecated; use features.usage instead.
Endpoints []*Endpoint `json:"endpoints,omitempty"`
// A collection of snippets that demonstrate a particular feature
Features *Features `json:"features,omitempty"`
}

type TypeId = string
Expand Down

0 comments on commit b1cf5a9

Please sign in to comment.