Skip to content

Commit 79f1c35

Browse files
committed
Release v0.0.877
1 parent 77a329e commit 79f1c35

File tree

2 files changed

+7
-72
lines changed

2 files changed

+7
-72
lines changed

core/client_option.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ func (c *ClientOptions) cloneHeader() http.Header {
3636
headers := c.HTTPHeader.Clone()
3737
headers.Set("X-Fern-Language", "Go")
3838
headers.Set("X-Fern-SDK-Name", "github.com/fern-api/generator-exec-go")
39-
headers.Set("X-Fern-SDK-Version", "v0.0.874")
39+
headers.Set("X-Fern-SDK-Version", "v0.0.877")
4040
return headers
4141
}

types.go

Lines changed: 6 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,11 @@ type CustomLicense struct {
214214
type EnvironmentVariable = string
215215

216216
type GeneratorConfig struct {
217-
DryRun bool `json:"dryRun"`
218-
IrFilepath string `json:"irFilepath"`
219-
License *LicenseConfig `json:"license,omitempty"`
220-
Output *GeneratorOutputConfig `json:"output,omitempty"`
217+
DryRun bool `json:"dryRun"`
218+
IrFilepath string `json:"irFilepath"`
219+
OriginalReadmeFilepath *string `json:"originalReadmeFilepath,omitempty"`
220+
License *LicenseConfig `json:"license,omitempty"`
221+
Output *GeneratorOutputConfig `json:"output,omitempty"`
221222
// Deprecated. Use output.mode instead.
222223
Publish *GeneratorPublishConfig `json:"publish,omitempty"`
223224
WorkspaceName string `json:"workspaceName"`
@@ -311,9 +312,7 @@ func (g *GeneratorEnvironment) Accept(visitor GeneratorEnvironmentVisitor) error
311312
}
312313

313314
type GeneratorOutputConfig struct {
314-
Path string `json:"path"`
315-
// A static file that defines the list of features supported by the generator.
316-
FeaturesFilepath *string `json:"featuresFilepath,omitempty"`
315+
Path string `json:"path"`
317316
SnippetFilepath *string `json:"snippetFilepath,omitempty"`
318317
SnippetTemplateFilepath *string `json:"snippetTemplateFilepath,omitempty"`
319318
PublishingMetadata *PublishingMetadata `json:"publishingMetadata,omitempty"`
@@ -1637,63 +1636,6 @@ func (e *EndpointSnippet) Accept(visitor EndpointSnippetVisitor) error {
16371636
}
16381637
}
16391638

1640-
// Unique identifiers for the different features that can be demonstrated in the snippets.
1641-
type FeatureType uint
1642-
1643-
const (
1644-
FeatureTypeUsage FeatureType = iota + 1
1645-
FeatureTypeTimeouts
1646-
FeatureTypeRequestOptions
1647-
FeatureTypeRetries
1648-
FeatureTypeErrors
1649-
)
1650-
1651-
func (f FeatureType) String() string {
1652-
switch f {
1653-
default:
1654-
return strconv.Itoa(int(f))
1655-
case FeatureTypeUsage:
1656-
return "USAGE"
1657-
case FeatureTypeTimeouts:
1658-
return "TIMEOUTS"
1659-
case FeatureTypeRequestOptions:
1660-
return "REQUEST_OPTIONS"
1661-
case FeatureTypeRetries:
1662-
return "RETRIES"
1663-
case FeatureTypeErrors:
1664-
return "ERRORS"
1665-
}
1666-
}
1667-
1668-
func (f FeatureType) MarshalJSON() ([]byte, error) {
1669-
return []byte(fmt.Sprintf("%q", f.String())), nil
1670-
}
1671-
1672-
func (f *FeatureType) UnmarshalJSON(data []byte) error {
1673-
var raw string
1674-
if err := json.Unmarshal(data, &raw); err != nil {
1675-
return err
1676-
}
1677-
switch raw {
1678-
case "USAGE":
1679-
value := FeatureTypeUsage
1680-
*f = value
1681-
case "TIMEOUTS":
1682-
value := FeatureTypeTimeouts
1683-
*f = value
1684-
case "REQUEST_OPTIONS":
1685-
value := FeatureTypeRequestOptions
1686-
*f = value
1687-
case "RETRIES":
1688-
value := FeatureTypeRetries
1689-
*f = value
1690-
case "ERRORS":
1691-
value := FeatureTypeErrors
1692-
*f = value
1693-
}
1694-
return nil
1695-
}
1696-
16971639
type GoEndpointSnippet struct {
16981640
// A full endpoint snippet, including the client instantiation, e.g.
16991641
//
@@ -1797,13 +1739,6 @@ type Snippets struct {
17971739
Types map[TypeId]string `json:"types,omitempty"`
17981740
// The endpoint snippets defined by the API
17991741
Endpoints []*Endpoint `json:"endpoints,omitempty"`
1800-
// A collection of endpoint snippets that demonstrate a particular feature.
1801-
//
1802-
// The key is a free-form string to allow for features not yet defined in the schema,
1803-
// but users are expected to use the FeatureType enum string representations.
1804-
Features map[string][]*Endpoint `json:"features,omitempty"`
1805-
// A list of requirements to use the generated snippets.
1806-
Requirements []string `json:"requirements,omitempty"`
18071742
}
18081743

18091744
type TypeId = string

0 commit comments

Comments
 (0)