Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.33.2
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed May 16, 2023
1 parent d0b4f53 commit 4213093
Show file tree
Hide file tree
Showing 120 changed files with 7,722 additions and 7,015 deletions.
10 changes: 9 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,12 @@ Based on:
- OpenAPI Doc 0.0.1
- Speakeasy CLI 1.33.2 (2.29.0) https://github.com/speakeasy-api/speakeasy
### Releases
- [Go v1.0.1] https://github.com/speakeasy-api/openapi-generation-tests/releases/tag/go-client-sdk/v1.0.1 - go-client-sdk
- [Go v1.0.1] https://github.com/speakeasy-api/openapi-generation-tests/releases/tag/go-client-sdk/v1.0.1 - go-client-sdk

## 2023-05-16 10:37:07
### Changes
Based on:
- OpenAPI Doc 0.0.1
- Speakeasy CLI 1.33.2 (2.29.0) https://github.com/speakeasy-api/speakeasy
### Releases
- [Go v1.0.2] https://github.com/speakeasy-api/openapi-generation-tests/releases/tag/go-client-sdk/v1.0.2 - go-client-sdk
7 changes: 6 additions & 1 deletion go-client-sdk/auth.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions go-client-sdk/docs/auth/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,10 @@ func main() {
)

ctx := context.Background()
res, err := s.Auth.BasicAuth(ctx, operations.BasicAuthRequest{
Passwd: "quo",
User: "sequi",
}, operations.BasicAuthSecurity{
res, err := s.Auth.BasicAuth(ctx, operations.BasicAuthSecurity{
Password: "YOUR_PASSWORD",
Username: "YOUR_USERNAME",
})
}, "quo", "sequi")
if err != nil {
log.Fatal(err)
}
Expand Down
45 changes: 20 additions & 25 deletions go-client-sdk/docs/errors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ func main() {
)

ctx := context.Background()
res, err := s.Errors.StatusGet(ctx, operations.StatusGetRequest{
StatusCode: 692532,
})
res, err := s.Errors.StatusGet(ctx, 692532)
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -108,28 +106,25 @@ func main() {
)

ctx := context.Background()
res, err := s.Errors.StatusPostRetries(ctx, operations.StatusPostRetriesRequest{
SimpleObject: &shared.SimpleObject{
Any: "provident",
Bigint: big.NewInt(725255),
BigintStr: types.MustBigIntFromString("659669"),
Bool: true,
BoolOpt: sdk.Bool(true),
Date: types.MustDateFromString("2020-01-01"),
DateTime: types.MustTimeFromString("2020-01-01T00:00:00Z"),
Enum: shared.EnumEnumTwo,
Float32: 2.2222222,
Int: 999999,
Int32: 1,
Int32Enum: shared.SimpleObjectInt32EnumEnumSixtyNine,
IntEnum: shared.SimpleObjectIntEnumEnumSecond,
IntOptNull: sdk.Int64(999999),
Num: 1.1,
NumOptNull: sdk.Float64(1.1),
Str: "example",
StrOpt: sdk.String("optional example"),
},
StatusCode: 956084,
res, err := s.Errors.StatusPostRetries(ctx, 588465, &shared.SimpleObject{
Any: "nam",
Bigint: big.NewInt(659669),
BigintStr: types.MustBigIntFromString("501324"),
Bool: true,
BoolOpt: sdk.Bool(true),
Date: types.MustDateFromString("2020-01-01"),
DateTime: types.MustTimeFromString("2020-01-01T00:00:00Z"),
Enum: shared.EnumEnumTwo,
Float32: 2.2222222,
Int: 999999,
Int32: 1,
Int32Enum: shared.SimpleObjectInt32EnumEnumSixtyNine,
IntEnum: shared.SimpleObjectIntEnumEnumThird,
IntOptNull: sdk.Int64(999999),
Num: 1.1,
NumOptNull: sdk.Float64(1.1),
Str: "example",
StrOpt: sdk.String("optional example"),
})
if err != nil {
log.Fatal(err)
Expand Down
107 changes: 46 additions & 61 deletions go-client-sdk/docs/flattening/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,29 +39,26 @@ func main() {
)

ctx := context.Background()
res, err := s.Flattening.ComponentBodyAndParamConflict(ctx, operations.ComponentBodyAndParamConflictRequest{
SimpleObject: shared.SimpleObject{
Any: "amet",
Bigint: big.NewInt(643990),
BigintStr: types.MustBigIntFromString("394869"),
Bool: true,
BoolOpt: sdk.Bool(true),
Date: types.MustDateFromString("2020-01-01"),
DateTime: types.MustTimeFromString("2020-01-01T00:00:00Z"),
Enum: shared.EnumEnumTwo,
Float32: 2.2222222,
Int: 999999,
Int32: 1,
Int32Enum: shared.SimpleObjectInt32EnumEnumSixtyNine,
IntEnum: shared.SimpleObjectIntEnumEnumSecond,
IntOptNull: sdk.Int64(999999),
Num: 1.1,
NumOptNull: sdk.Float64(1.1),
Str: "example",
StrOpt: sdk.String("optional example"),
},
Str: "omnis",
})
res, err := s.Flattening.ComponentBodyAndParamConflict(ctx, shared.SimpleObject{
Any: "amet",
Bigint: big.NewInt(643990),
BigintStr: types.MustBigIntFromString("394869"),
Bool: true,
BoolOpt: sdk.Bool(true),
Date: types.MustDateFromString("2020-01-01"),
DateTime: types.MustTimeFromString("2020-01-01T00:00:00Z"),
Enum: shared.EnumEnumTwo,
Float32: 2.2222222,
Int: 999999,
Int32: 1,
Int32Enum: shared.SimpleObjectInt32EnumEnumSixtyNine,
IntEnum: shared.SimpleObjectIntEnumEnumSecond,
IntOptNull: sdk.Int64(999999),
Num: 1.1,
NumOptNull: sdk.Float64(1.1),
Str: "example",
StrOpt: sdk.String("optional example"),
}, "omnis")
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -99,28 +96,25 @@ func main() {
)

ctx := context.Background()
res, err := s.Flattening.ComponentBodyAndParamNoConflict(ctx, operations.ComponentBodyAndParamNoConflictRequest{
ParamStr: "molestiae",
SimpleObject: shared.SimpleObject{
Any: "perferendis",
Bigint: big.NewInt(470132),
BigintStr: types.MustBigIntFromString("301575"),
Bool: true,
BoolOpt: sdk.Bool(true),
Date: types.MustDateFromString("2020-01-01"),
DateTime: types.MustTimeFromString("2020-01-01T00:00:00Z"),
Enum: shared.EnumEnumTwo,
Float32: 2.2222222,
Int: 999999,
Int32: 1,
Int32Enum: shared.SimpleObjectInt32EnumEnumOneHundredAndEightyOne,
IntEnum: shared.SimpleObjectIntEnumEnumSecond,
IntOptNull: sdk.Int64(999999),
Num: 1.1,
NumOptNull: sdk.Float64(1.1),
Str: "example",
StrOpt: sdk.String("optional example"),
},
res, err := s.Flattening.ComponentBodyAndParamNoConflict(ctx, "molestiae", shared.SimpleObject{
Any: "perferendis",
Bigint: big.NewInt(470132),
BigintStr: types.MustBigIntFromString("301575"),
Bool: true,
BoolOpt: sdk.Bool(true),
Date: types.MustDateFromString("2020-01-01"),
DateTime: types.MustTimeFromString("2020-01-01T00:00:00Z"),
Enum: shared.EnumEnumTwo,
Float32: 2.2222222,
Int: 999999,
Int32: 1,
Int32Enum: shared.SimpleObjectInt32EnumEnumOneHundredAndEightyOne,
IntEnum: shared.SimpleObjectIntEnumEnumSecond,
IntOptNull: sdk.Int64(999999),
Num: 1.1,
NumOptNull: sdk.Float64(1.1),
Str: "example",
StrOpt: sdk.String("optional example"),
})
if err != nil {
log.Fatal(err)
Expand Down Expand Up @@ -156,10 +150,7 @@ func main() {
)

ctx := context.Background()
res, err := s.Flattening.ConflictingParams(ctx, operations.ConflictingParamsRequest{
StrPathParameter: "labore",
StrQueryParameter: "labore",
})
res, err := s.Flattening.ConflictingParams(ctx, "labore", "labore")
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -194,12 +185,9 @@ func main() {
)

ctx := context.Background()
res, err := s.Flattening.InlineBodyAndParamConflict(ctx, operations.InlineBodyAndParamConflictRequest{
RequestBody: operations.InlineBodyAndParamConflictRequestBody{
Str: "suscipit",
},
Str: "natus",
})
res, err := s.Flattening.InlineBodyAndParamConflict(ctx, operations.InlineBodyAndParamConflictRequestBody{
Str: "suscipit",
}, "natus")
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -234,12 +222,9 @@ func main() {
)

ctx := context.Background()
res, err := s.Flattening.InlineBodyAndParamNoConflict(ctx, operations.InlineBodyAndParamNoConflictRequest{
RequestBody: operations.InlineBodyAndParamNoConflictRequestBody{
BodyStr: "nobis",
},
ParamStr: "eum",
})
res, err := s.Flattening.InlineBodyAndParamNoConflict(ctx, operations.InlineBodyAndParamNoConflictRequestBody{
BodyStr: "nobis",
}, "eum")
if err != nil {
log.Fatal(err)
}
Expand Down
23 changes: 7 additions & 16 deletions go-client-sdk/docs/generation/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ func main() {
)

ctx := context.Background()
res, err := s.Generation.DeprecatedNoCommentsGet(ctx, operations.DeprecatedNoCommentsGetRequest{
DeprecatedParameter: sdk.String("vero"),
})
res, err := s.Generation.DeprecatedNoCommentsGet(ctx, "vero")
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -151,9 +149,7 @@ func main() {
)

ctx := context.Background()
res, err := s.Generation.DeprecatedWithCommentsGet(ctx, operations.DeprecatedWithCommentsGetRequest{
DeprecatedParameter: sdk.String("aspernatur"),
})
res, err := s.Generation.DeprecatedWithCommentsGet(ctx, "aspernatur")
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -258,13 +254,10 @@ func main() {
)

ctx := context.Background()
res, err := s.Generation.IgnoresPost(ctx, operations.IgnoresPostRequest{
RequestBody: &operations.IgnoresPostApplicationJSON{
CallbackURL: sdk.String("http://foolhardy-bolero.name"),
TestProp: sdk.String("ullam"),
},
TestParam: sdk.String("provident"),
})
res, err := s.Generation.IgnoresPost(ctx, &operations.IgnoresPostApplicationJSON{
CallbackURL: sdk.String("http://foolhardy-bolero.name"),
TestProp: sdk.String("ullam"),
}, "provident")
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -299,9 +292,7 @@ func main() {
)

ctx := context.Background()
res, err := s.Generation.NameOverride(ctx, operations.NameOverrideGetRequest{
TestQueryParam: "example",
})
res, err := s.Generation.NameOverride(ctx, "example")
if err != nil {
log.Fatal(err)
}
Expand Down
4 changes: 2 additions & 2 deletions go-client-sdk/docs/globals/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func main() {
)

ctx := context.Background()
res, err := s.Globals.GlobalPathParameterGet(ctx, operations.GlobalPathParameterGetRequest{})
res, err := s.Globals.GlobalPathParameterGet(ctx, 58029)
if err != nil {
log.Fatal(err)
}
Expand Down Expand Up @@ -68,7 +68,7 @@ func main() {
)

ctx := context.Background()
res, err := s.Globals.GlobalsQueryParameterGet(ctx, operations.GlobalsQueryParameterGetRequest{})
res, err := s.Globals.GlobalsQueryParameterGet(ctx, "ipsa")
if err != nil {
log.Fatal(err)
}
Expand Down
Loading

0 comments on commit 4213093

Please sign in to comment.