Generate config suggestions
client.Projects.Configs.Guess(ctx, params) (*ProjectConfigGuessResponse, error)
/v0/projects/{project}/configs/guess
Generate suggestions for changes to config files based on an OpenAPI spec.Parameters
Returns
Generate config suggestions
package main
import (
"context"
"fmt"
"github.com/stainless-api/stainless-api-go"
"github.com/stainless-api/stainless-api-go/option"
)
func main() {
client := stainless.NewClient(
option.WithAPIKey("My API Key"),
)
response, err := client.Projects.Configs.Guess(context.TODO(), stainless.ProjectConfigGuessParams{
Project: stainless.String("project"),
Spec: "spec",
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response)
}
{
"foo": {
"content": "content"
}
}
Returns Examples
{
"foo": {
"content": "content"
}
}