Skip to content

Commit 4dae0b7

Browse files
committed
Release v0.0.827
1 parent 2ae8fa3 commit 4dae0b7

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
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.823")
39+
headers.Set("X-Fern-SDK-Version", "v0.0.827")
4040
return headers
4141
}

types.go

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,16 @@ func (g *GeneratorEnvironment) Accept(visitor GeneratorEnvironmentVisitor) error
310310
}
311311
}
312312

313+
type GeneratorMetadata struct {
314+
Description *string `json:"description,omitempty"`
315+
Authors []*GeneratorMetadataAuthor `json:"authors,omitempty"`
316+
}
317+
318+
type GeneratorMetadataAuthor struct {
319+
Name string `json:"name"`
320+
Email string `json:"email"`
321+
}
322+
313323
type GeneratorOutputConfig struct {
314324
Path string `json:"path"`
315325
SnippetFilepath *string `json:"snippetFilepath,omitempty"`
@@ -988,6 +998,7 @@ type PostmanGithubPublishInfo struct {
988998
WorkspaceIdEnvironmentVariable EnvironmentVariable `json:"workspaceIdEnvironmentVariable"`
989999
}
9901000

1001+
// This should effectively be deprecated in favor of a more specific configuration per-output mode (pypi, maven, etc.).
9911002
type PublishingMetadata struct {
9921003
PackageDescription *string `json:"package_description,omitempty"`
9931004
PublisherEmail *string `json:"publisher_email,omitempty"`
@@ -1000,13 +1011,23 @@ type PypiGithubPublishInfo struct {
10001011
PackageName string `json:"packageName"`
10011012
UsernameEnvironmentVariable EnvironmentVariable `json:"usernameEnvironmentVariable"`
10021013
PasswordEnvironmentVariable EnvironmentVariable `json:"passwordEnvironmentVariable"`
1014+
PypiMetadata *PypiMetadata `json:"pypiMetadata,omitempty"`
1015+
}
1016+
1017+
type PypiMetadata struct {
1018+
Description *string `json:"description,omitempty"`
1019+
Authors []*GeneratorMetadataAuthor `json:"authors,omitempty"`
1020+
Keywords []string `json:"keywords,omitempty"`
1021+
DocumentationLink *string `json:"documentationLink,omitempty"`
1022+
HomepageLink *string `json:"homepageLink,omitempty"`
10031023
}
10041024

10051025
type PypiRegistryConfig struct {
1006-
RegistryUrl string `json:"registryUrl"`
1007-
Username string `json:"username"`
1008-
Password string `json:"password"`
1009-
PackageName string `json:"packageName"`
1026+
RegistryUrl string `json:"registryUrl"`
1027+
Username string `json:"username"`
1028+
Password string `json:"password"`
1029+
PackageName string `json:"packageName"`
1030+
PypiMetadata *PypiMetadata `json:"pypiMetadata,omitempty"`
10101031
}
10111032

10121033
type RemoteGeneratorEnvironment struct {

0 commit comments

Comments
 (0)