Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#1588)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Mar 20, 2024
1 parent cd4dc2c commit fa5108f
Show file tree
Hide file tree
Showing 10 changed files with 911 additions and 15,910 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func main() {
option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"), // defaults to os.LookupEnv("CLOUDFLARE_API_KEY")
option.WithAPIEmail("user@example.com"), // defaults to os.LookupEnv("CLOUDFLARE_EMAIL")
)
zoneNewResponse, err := client.Zones.New(context.TODO(), zones.ZoneNewParams{
zone, err := client.Zones.New(context.TODO(), zones.ZoneNewParams{
Account: cloudflare.F(zones.ZoneNewParamsAccount{
ID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
}),
Expand All @@ -62,12 +62,12 @@ func main() {
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", zoneNewResponse.ID)
fmt.Printf("%+v\n", zone.ID)
}

```

### Request Fields
### Request fields

All request parameters are wrapped in a generic `Field` type,
which we use to distinguish zero values from null or omitted fields.
Expand Down Expand Up @@ -97,7 +97,7 @@ params := FooParams{
}
```

### Response Objects
### Response objects

All fields in response structs are value types (not pointers or wrappers).

Expand Down Expand Up @@ -303,7 +303,7 @@ You may also replace the default `http.Client` with
accepted (this overwrites any previous client) and receives requests after any
middleware has been applied.

## Semantic Versioning
## Semantic versioning

This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:

Expand Down
29 changes: 11 additions & 18 deletions api.md

Large diffs are not rendered by default.

Loading

0 comments on commit fa5108f

Please sign in to comment.