From 9c7edda864ee08b7900fb2425c9cf3cbbec7ca5d Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Mon, 22 May 2023 14:52:23 +0000 Subject: [PATCH] ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.36.3 --- RELEASES.md | 10 +- go-client-sdk/docs/generation/README.md | 36 +- go-client-sdk/docs/globals/README.md | 4 +- go-client-sdk/docs/parameters/README.md | 14 +- go-client-sdk/gen.yaml | 6 +- go-client-sdk/generation.go | 3 +- .../operations/deprecatedwithcommentsget.go | 2 + go-client-sdk/sdk.go | 2 +- go-client-sdk/tests/telemetry_test.go | 4 +- java-client-sdk/README.md | 2 +- java-client-sdk/docs/generation/README.md | 34 +- java-client-sdk/docs/globals/README.md | 4 +- java-client-sdk/docs/parameters/README.md | 195 ++--- java-client-sdk/gen.yaml | 6 +- java-client-sdk/lib/build.gradle | 2 +- .../java/org/openapis/openapi/Generation.java | 16 +- .../main/java/org/openapis/openapi/SDK.java | 2 +- .../DeprecatedWithCommentsGetRequest.java | 11 + .../org/openapis/openapi/TelemetryTests.java | 4 +- php-client-sdk/docs/generation/README.md | 10 +- php-client-sdk/gen.yaml | 6 +- php-client-sdk/src/Generation.php | 3 + .../DeprecatedWithCommentsGetRequest.php | 9 + php-client-sdk/src/SDK.php | 2 +- php-client-sdk/tests/TelemetryTest.php | 4 +- python-client-sdk/docs/generation/README.md | 36 +- python-client-sdk/docs/globals/README.md | 4 +- python-client-sdk/docs/parameters/README.md | 14 +- python-client-sdk/gen.yaml | 6 +- python-client-sdk/setup.py | 2 +- python-client-sdk/src/sdk/generation.py | 3 +- .../operations/deprecatedwithcommentsget.py | 2 + python-client-sdk/src/sdk/sdk.py | 2 +- python-client-sdk/tests/test_telemetry.py | 4 +- ruby-client-sdk/docs/generation/README.md | 71 +- ruby-client-sdk/docs/parameters/README.md | 304 ++++---- ruby-client-sdk/docs/requestbodies/README.md | 719 ++++++++++-------- ruby-client-sdk/gen.yaml | 6 +- ruby-client-sdk/lib/sdk/generation.rb | 5 +- .../operations/deprecatedwithcommentsget.rb | 7 +- ruby-client-sdk/lib/sdk/sdk.rb | 2 +- ruby-client-sdk/openapi.gemspec | 2 +- ruby-client-sdk/test/telemetry_test.rb | 4 +- .../__tests__/telemetry.test.ts | 4 +- .../docs/generation/README.md | 36 +- typescript-client-sdk/docs/globals/README.md | 4 +- .../docs/parameters/README.md | 14 +- typescript-client-sdk/gen.yaml | 6 +- typescript-client-sdk/package-lock.json | 4 +- typescript-client-sdk/package.json | 2 +- typescript-client-sdk/src/sdk/generation.ts | 2 + .../operations/deprecatedwithcommentsget.ts | 8 + typescript-client-sdk/src/sdk/sdk.ts | 2 +- 53 files changed, 887 insertions(+), 779 deletions(-) diff --git a/RELEASES.md b/RELEASES.md index aa7e68917..b32b6b36b 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -54,4 +54,12 @@ Based on: - OpenAPI Doc 0.0.1 - Speakeasy CLI 1.35.0 (2.31.0) https://github.com/speakeasy-api/speakeasy ### Releases -- [Go v1.2.0] https://github.com/speakeasy-api/openapi-generation-tests/releases/tag/go-client-sdk/v1.2.0 - go-client-sdk \ No newline at end of file +- [Go v1.2.0] https://github.com/speakeasy-api/openapi-generation-tests/releases/tag/go-client-sdk/v1.2.0 - go-client-sdk + +## 2023-05-22 14:51:02 +### Changes +Based on: +- OpenAPI Doc 0.0.1 +- Speakeasy CLI 1.36.3 (2.31.0) https://github.com/speakeasy-api/speakeasy +### Releases +- [Go v1.2.1] https://github.com/speakeasy-api/openapi-generation-tests/releases/tag/go-client-sdk/v1.2.1 - go-client-sdk \ No newline at end of file diff --git a/go-client-sdk/docs/generation/README.md b/go-client-sdk/docs/generation/README.md index 328e5cc3b..0d2cf2517 100755 --- a/go-client-sdk/docs/generation/README.md +++ b/go-client-sdk/docs/generation/README.md @@ -149,7 +149,7 @@ func main() { ) ctx := context.Background() - res, err := s.Generation.DeprecatedWithCommentsGet(ctx, "aspernatur") + res, err := s.Generation.DeprecatedWithCommentsGet(ctx, "aspernatur", "architecto") if err != nil { log.Fatal(err) } @@ -255,9 +255,9 @@ func main() { ctx := context.Background() res, err := s.Generation.IgnoresPost(ctx, &operations.IgnoresPostApplicationJSON{ - CallbackURL: sdk.String("http://foolhardy-bolero.name"), - TestProp: sdk.String("ullam"), - }, "provident") + CallbackURL: sdk.String("http://brisk-mobile.info"), + TestProp: sdk.String("provident"), + }, "quos") if err != nil { log.Fatal(err) } @@ -334,17 +334,17 @@ func main() { ctx := context.Background() res, err := s.Generation.UsageExamplePost(ctx, operations.UsageExamplePostRequest{ RequestBody: &operations.UsageExamplePostRequestBody{ - Email: sdk.String("Kiley_Bartoletti@yahoo.com"), - FormatEmail: sdk.String("Emmie89@yahoo.com"), - FormatURI: sdk.String("http://handy-borrowing.info"), - FormatUUID: sdk.String("fe4c8b71-1e5b-47fd-aed0-28921cddc692"), - Hostname: sdk.String("illegal-antique.com"), - Ipv4: sdk.String("251.178.95.116"), - Ipv6: sdk.String("6b0d:5f0d:30c5:fbb2:5870:5320:2c73:d5fe"), + Email: sdk.String("Alexis_OHara32@yahoo.com"), + FormatEmail: sdk.String("Dallas36@yahoo.com"), + FormatURI: sdk.String("http://infinite-winery.org"), + FormatUUID: sdk.String("4c8b711e-5b7f-4d2e-9028-921cddc69260"), + Hostname: sdk.String("big-willingness.net"), + Ipv4: sdk.String("95.116.107.184"), + Ipv6: sdk.String("0d5f:0d30:c5fb:b258:7053:202c:73d5:fe9b"), SimpleObject: &shared.SimpleObject{ - Any: "omnis", - Bigint: big.NewInt(704415), - BigintStr: types.MustBigIntFromString("596656"), + Any: "perspiciatis", + Bigint: big.NewInt(31838), + BigintStr: types.MustBigIntFromString("783645"), Bool: true, BoolOpt: sdk.Bool(true), Date: types.MustDateFromString("2020-01-01"), @@ -354,16 +354,16 @@ func main() { Int: 999999, Int32: 1, Int32Enum: shared.SimpleObjectInt32EnumFiftyFive, - IntEnum: shared.SimpleObjectIntEnumThird, + IntEnum: shared.SimpleObjectIntEnumSecond, IntOptNull: sdk.Int64(999999), Num: 1.1, NumOptNull: sdk.Float64(1.1), Str: "example", StrOpt: sdk.String("optional example"), }, - Unknown: sdk.String("consequuntur"), - URI: sdk.String("https://petty-atom.name"), - UUID: sdk.String("b3fe49a8-d9cb-4f48-a333-23f9b77f3a41"), + Unknown: sdk.String("error"), + URI: sdk.String("http://noxious-pronunciation.biz"), + UUID: sdk.String("fe49a8d9-cbf4-4863-b323-f9b77f3a4100"), }, BoolParameter: false, DateParameter: types.MustDateFromString("2020-01-01"), diff --git a/go-client-sdk/docs/globals/README.md b/go-client-sdk/docs/globals/README.md index 4d13774d3..5677f5c98 100755 --- a/go-client-sdk/docs/globals/README.md +++ b/go-client-sdk/docs/globals/README.md @@ -33,7 +33,7 @@ func main() { ) ctx := context.Background() - res, err := s.Globals.GlobalPathParameterGet(ctx, 58029) + res, err := s.Globals.GlobalPathParameterGet(ctx, 434417) if err != nil { log.Fatal(err) } @@ -68,7 +68,7 @@ func main() { ) ctx := context.Background() - res, err := s.Globals.GlobalsQueryParameterGet(ctx, "ipsa") + res, err := s.Globals.GlobalsQueryParameterGet(ctx, "odio") if err != nil { log.Fatal(err) } diff --git a/go-client-sdk/docs/parameters/README.md b/go-client-sdk/docs/parameters/README.md index aef769824..214fbdb72 100755 --- a/go-client-sdk/docs/parameters/README.md +++ b/go-client-sdk/docs/parameters/README.md @@ -51,18 +51,16 @@ func main() { ctx := context.Background() res, err := s.Parameters.DeepObjectQueryParamsMap(ctx, map[string]string{ - "odio": "quaerat", "accusamus": "quidem", + "voluptatibus": "voluptas", }, map[string][]string{ - "voluptas": []string{ - "eos", - "atque", + "eos": []string{ "sit", + "fugiat", + "ab", }, - "fugiat": []string{ - "soluta", - }, - "dolorum": []string{ + "soluta": []string{ + "iusto", "voluptate", "dolorum", }, diff --git a/go-client-sdk/gen.yaml b/go-client-sdk/gen.yaml index c956a942f..7743bdec4 100755 --- a/go-client-sdk/gen.yaml +++ b/go-client-sdk/gen.yaml @@ -1,13 +1,13 @@ configVersion: 1.0.0 management: - docChecksum: 948d86c8c8659783f15ecb6484ae3368 + docChecksum: 76623f721a416be989cb70240cd8b7e1 docVersion: 0.0.1 - speakeasyVersion: 1.35.0 + speakeasyVersion: 1.36.3 generationVersion: 2.31.0 generation: sdkClassName: SDK singleTagPerOp: false go: - version: 1.2.0 + version: 1.2.1 maxMethodParams: 5 packageName: openapi diff --git a/go-client-sdk/generation.go b/go-client-sdk/generation.go index ea49e5eef..723cb2766 100755 --- a/go-client-sdk/generation.go +++ b/go-client-sdk/generation.go @@ -175,9 +175,10 @@ func (s *generation) DeprecatedNoCommentsGet(ctx context.Context, deprecatedPara // DeprecatedWithCommentsGet - This is an endpoint setup to test deprecation with comments // // Deprecated: this method will be removed in a future release, please migrate away from it as soon as possible. -func (s *generation) DeprecatedWithCommentsGet(ctx context.Context, deprecatedParameter *string) (*operations.DeprecatedWithCommentsGetResponse, error) { +func (s *generation) DeprecatedWithCommentsGet(ctx context.Context, deprecatedParameter *string, newParameter *string) (*operations.DeprecatedWithCommentsGetResponse, error) { request := operations.DeprecatedWithCommentsGetRequest{ DeprecatedParameter: deprecatedParameter, + NewParameter: newParameter, } baseURL := s.serverURL diff --git a/go-client-sdk/pkg/models/operations/deprecatedwithcommentsget.go b/go-client-sdk/pkg/models/operations/deprecatedwithcommentsget.go index 0d6f1acb7..af8a14ccd 100755 --- a/go-client-sdk/pkg/models/operations/deprecatedwithcommentsget.go +++ b/go-client-sdk/pkg/models/operations/deprecatedwithcommentsget.go @@ -11,6 +11,8 @@ type DeprecatedWithCommentsGetRequest struct { // // Deprecated: this field will be removed in a future release, please migrate away from it as soon as possible. DeprecatedParameter *string `queryParam:"style=form,explode=true,name=deprecatedParameter"` + // This is a string parameter + NewParameter *string `queryParam:"style=form,explode=true,name=newParameter"` } type DeprecatedWithCommentsGetResponse struct { diff --git a/go-client-sdk/sdk.go b/go-client-sdk/sdk.go index d2358c669..5aeb23e07 100755 --- a/go-client-sdk/sdk.go +++ b/go-client-sdk/sdk.go @@ -147,7 +147,7 @@ func WithGlobalQueryParam(globalQueryParam string) SDKOption { func New(opts ...SDKOption) *SDK { sdk := &SDK{ _language: "go", - _sdkVersion: "1.2.0", + _sdkVersion: "1.2.1", _genVersion: "2.31.0", _globals: map[string]map[string]map[string]interface{}{ diff --git a/go-client-sdk/tests/telemetry_test.go b/go-client-sdk/tests/telemetry_test.go index a651e88bd..7e568cd41 100755 --- a/go-client-sdk/tests/telemetry_test.go +++ b/go-client-sdk/tests/telemetry_test.go @@ -22,7 +22,7 @@ func TestTelemetryUserAgentGet(t *testing.T) { require.NoError(t, err) require.NotNil(t, res) assert.Equal(t, http.StatusOK, res.StatusCode) - assert.Equal(t, "speakeasy-sdk/go 1.2.0 2.31.0", res.Res.Headers["X-Speakeasy-User-Agent"]) + assert.Equal(t, "speakeasy-sdk/go 1.2.1 2.31.0", res.Res.Headers["X-Speakeasy-User-Agent"]) } func TestTelemetrySpeakeasyUserAgentGet(t *testing.T) { @@ -37,5 +37,5 @@ func TestTelemetrySpeakeasyUserAgentGet(t *testing.T) { require.NotNil(t, res) assert.Equal(t, http.StatusOK, res.StatusCode) assert.Equal(t, userAgent, res.Res.Headers["User-Agent"]) - assert.Equal(t, "speakeasy-sdk/go 1.2.0 2.31.0", res.Res.Headers["X-Speakeasy-User-Agent"]) + assert.Equal(t, "speakeasy-sdk/go 1.2.1 2.31.0", res.Res.Headers["X-Speakeasy-User-Agent"]) } diff --git a/java-client-sdk/README.md b/java-client-sdk/README.md index 56d8f9b80..0b24940f8 100755 --- a/java-client-sdk/README.md +++ b/java-client-sdk/README.md @@ -6,7 +6,7 @@ ### Gradle ```groovy -implementation 'org.openapis.openapi:openapi:1.2.0' +implementation 'org.openapis.openapi:openapi:1.2.1' ``` diff --git a/java-client-sdk/docs/generation/README.md b/java-client-sdk/docs/generation/README.md index db17e8cfb..e76375ba4 100755 --- a/java-client-sdk/docs/generation/README.md +++ b/java-client-sdk/docs/generation/README.md @@ -148,7 +148,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - DeprecatedWithCommentsGetResponse res = sdk.generation.deprecatedWithCommentsGet("sunt"); + DeprecatedWithCommentsGetResponse res = sdk.generation.deprecatedWithCommentsGet("sunt", "quo"); if (res.statusCode == 200) { // handle response @@ -257,9 +257,9 @@ public class Application { .build(); IgnoresPostResponse res = sdk.generation.ignoresPost(new IgnoresPostApplicationJSON() {{ - callbackUrl = "https://these-subroutine.net"; - testProp = "ea"; - }}, "excepturi"); + callbackUrl = "https://treasured-simple.info"; + testProp = "excepturi"; + }}, "odit"); if (res.httpBinSimpleJsonObject != null) { // handle response @@ -343,24 +343,24 @@ public class Application { UsageExamplePostRequest req = new UsageExamplePostRequest(false, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00Z"), 2.2222222, UsageExamplePostEnumParameter.VALUE3, 1.1, 111111L, 1, "example") {{ requestBody = new UsageExamplePostRequestBody() {{ - email = "Gwendolyn98@gmail.com"; - formatEmail = "Gardner_Kling@hotmail.com"; - formatUri = "http://tragic-framework.org"; - formatUuid = "0d30c5fb-b258-4705-b202-c73d5fe9b90c"; - hostname = "damp-laryngitis.name"; - ipv4 = "12.147.178.60"; - ipv6 = "fe49:a8d9:cbf4:8633:323f:9b77:f3a4:1006"; - simpleObject = new SimpleObject("odio", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00Z"), Enum.TWO, 2.2222222, 999999L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Third, 1.1, "example") {{ - bigint = 696344L; - bigintStr = "voluptatibus"; + email = "Alexanne_Bernhard37@yahoo.com"; + formatEmail = "Heidi86@yahoo.com"; + formatUri = "http://wise-airbag.org"; + formatUuid = "30c5fbb2-5870-4532-82c7-3d5fe9b90c28"; + hostname = "petty-atom.name"; + ipv4 = "178.60.254.239"; + ipv6 = "49a8:d9cb:f486:3332:3f9b:77f3:a410:0674"; + simpleObject = new SimpleObject("accusamus", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00Z"), Enum.TWO, 2.2222222, 999999L, 1, SimpleObjectInt32Enum.ONE_HUNDRED_AND_EIGHTY_ONE, SimpleObjectIntEnum.Third, 1.1, "example") {{ + bigint = 377752L; + bigintStr = "natus"; boolOpt = true; intOptNull = 999999L; numOptNull = 1.1; strOpt = "optional example"; }};; - unknown = "voluptas"; - uri = "https://definite-marines.com"; - uuid = "d1ba77a8-9ebf-4737-ae42-03ce5e6a95d8"; + unknown = "eos"; + uri = "https://alert-stir-fry.com"; + uuid = "ba77a89e-bf73-47ae-8203-ce5e6a95d8a0"; }};; optEnumParameter = UsageExamplePostOptEnumParameter.VALUE3; }}; diff --git a/java-client-sdk/docs/globals/README.md b/java-client-sdk/docs/globals/README.md index 447582542..b97859bde 100755 --- a/java-client-sdk/docs/globals/README.md +++ b/java-client-sdk/docs/globals/README.md @@ -32,7 +32,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - GlobalPathParameterGetResponse res = sdk.globals.globalPathParameterGet(628982L); + GlobalPathParameterGetResponse res = sdk.globals.globalPathParameterGet(872651L); if (res.res != null) { // handle response @@ -67,7 +67,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - GlobalsQueryParameterGetResponse res = sdk.globals.globalsQueryParameterGet("alias"); + GlobalsQueryParameterGetResponse res = sdk.globals.globalsQueryParameterGet("quaerat"); if (res.res != null) { // handle response diff --git a/java-client-sdk/docs/parameters/README.md b/java-client-sdk/docs/parameters/README.md index 9162d0186..490872615 100755 --- a/java-client-sdk/docs/parameters/README.md +++ b/java-client-sdk/docs/parameters/README.md @@ -50,17 +50,22 @@ public class Application { .build(); DeepObjectQueryParamsMapResponse res = sdk.parameters.deepObjectQueryParamsMap(new java.util.HashMap() {{ - put("quaerat", "tempora"); put("vel", "quod"); put("officiis", "qui"); - put("dolorum", "a"); }}, new java.util.HashMap() {{ - put("harum", new String[]{{ - add("ipsum"), - add("quisquam"), + put("a", new String[]{{ + add("harum"), + add("iusto"), }}); - put("tenetur", new String[]{{ + put("ipsum", new String[]{{ + add("tenetur"), + add("amet"), add("tempore"), + add("accusamus"), + }}); + put("numquam", new String[]{{ + add("dolorem"), + add("sapiente"), }}); }}); @@ -104,10 +109,10 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - DeepObjectQueryParamsObjectResponse res = sdk.parameters.deepObjectQueryParamsObject(new SimpleObject("totam", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00Z"), Enum.TWO, 2.2222222, 999999L, 1, SimpleObjectInt32Enum.SIXTY_NINE, SimpleObjectIntEnum.First, 1.1, "example") {{ - any = "accusamus"; - bigint = 253941L; - bigintStr = "enim"; + DeepObjectQueryParamsObjectResponse res = sdk.parameters.deepObjectQueryParamsObject(new SimpleObject("sed", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00Z"), Enum.TWO, 2.2222222, 999999L, 1, SimpleObjectInt32Enum.SIXTY_NINE, SimpleObjectIntEnum.Third, 1.1, "example") {{ + any = "totam"; + bigint = 471752L; + bigintStr = "sit"; bool = true; boolOpt = true; date = LocalDate.parse("2020-01-01"); @@ -116,8 +121,8 @@ public class Application { float32 = 2.2222222; int_ = 999999L; int32 = 1; - int32Enum = SimpleObjectInt32Enum.FIFTY_FIVE; - intEnum = SimpleObjectIntEnum.Third; + int32Enum = SimpleObjectInt32Enum.ONE_HUNDRED_AND_EIGHTY_ONE; + intEnum = SimpleObjectIntEnum.First; intOptNull = 999999L; num = 1.1; numOptNull = 1.1; @@ -125,9 +130,8 @@ public class Application { strOpt = "optional example"; }}, new DeepObjectQueryParamsObjectObjArrParam() {{ arr = new String[]{{ - add("neque"), - add("sed"), - add("vel"), + add("deserunt"), + add("quam"), }}; }}); @@ -165,11 +169,9 @@ public class Application { .build(); FormQueryParamsArrayResponse res = sdk.parameters.formQueryParamsArray(new String[]{{ - add("voluptas"), - add("deserunt"), - add("quam"), + add("incidunt"), }}, new Long[]{{ - add(277628L), + add(586784L), }}); if (res.res != null) { @@ -206,12 +208,14 @@ public class Application { .build(); FormQueryParamsMapResponse res = sdk.parameters.formQueryParamsMap(new java.util.HashMap() {{ - put("cupiditate", "maxime"); + put("pariatur", "soluta"); + put("dicta", "laborum"); + put("totam", "incidunt"); + put("aspernatur", "dolores"); }}, new java.util.HashMap() {{ - put("soluta", 117531L); - put("laborum", 517379L); - put("incidunt", 132068L); - put("dolores", 716860L); + put("facilis", 396060L); + put("quam", 565421L); + put("temporibus", 183280L); }}); if (res.res != null) { @@ -253,10 +257,10 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - FormQueryParamsObjectResponse res = sdk.parameters.formQueryParamsObject(new SimpleObject("qui", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00Z"), Enum.TWO, 2.2222222, 999999L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.First, 1.1, "example") {{ - any = "facilis"; - bigint = 396060L; - bigintStr = "quam"; + FormQueryParamsObjectResponse res = sdk.parameters.formQueryParamsObject(new SimpleObject("ullam", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00Z"), Enum.TWO, 2.2222222, 999999L, 1, SimpleObjectInt32Enum.ONE_HUNDRED_AND_EIGHTY_ONE, SimpleObjectIntEnum.Third, 1.1, "example") {{ + any = "neque"; + bigint = 144847L; + bigintStr = "magni"; bool = true; boolOpt = true; date = LocalDate.parse("2020-01-01"); @@ -266,16 +270,16 @@ public class Application { int_ = 999999L; int32 = 1; int32Enum = SimpleObjectInt32Enum.SIXTY_NINE; - intEnum = SimpleObjectIntEnum.Third; + intEnum = SimpleObjectIntEnum.First; intOptNull = 999999L; num = 1.1; numOptNull = 1.1; str = "example"; strOpt = "optional example"; - }}, new SimpleObject("hic", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00Z"), Enum.TWO, 2.2222222, 999999L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Third, 1.1, "example") {{ - any = "magni"; - bigint = 488056L; - bigintStr = "sunt"; + }}, new SimpleObject("saepe", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00Z"), Enum.TWO, 2.2222222, 999999L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.First, 1.1, "example") {{ + any = "voluptatem"; + bigint = 765326L; + bigintStr = "soluta"; bool = true; boolOpt = true; date = LocalDate.parse("2020-01-01"); @@ -284,8 +288,8 @@ public class Application { float32 = 2.2222222; int_ = 999999L; int32 = 1; - int32Enum = SimpleObjectInt32Enum.SIXTY_NINE; - intEnum = SimpleObjectIntEnum.Third; + int32Enum = SimpleObjectInt32Enum.ONE_HUNDRED_AND_EIGHTY_ONE; + intEnum = SimpleObjectIntEnum.First; intOptNull = 999999L; num = 1.1; numOptNull = 1.1; @@ -326,7 +330,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - FormQueryParamsPrimitiveResponse res = sdk.parameters.formQueryParamsPrimitive(false, 746994L, 7486.64, "et"); + FormQueryParamsPrimitiveResponse res = sdk.parameters.formQueryParamsPrimitive(false, 749255L, 5521.93, "tempore"); if (res.res != null) { // handle response @@ -363,16 +367,16 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - FormQueryParamsRefParamObjectResponse res = sdk.parameters.formQueryParamsRefParamObject(new RefQueryParamObj(false, 749255L, 5521.93, "tempore") {{ - bool = false; - int_ = 903720L; - num = 2174.5; - str = "veritatis"; - }}, new RefQueryParamObjExploded(false, 209157L, 2921.47, "labore") {{ + FormQueryParamsRefParamObjectResponse res = sdk.parameters.formQueryParamsRefParamObject(new RefQueryParamObj(false, 209157L, 2921.47, "labore") {{ bool = false; int_ = 584476L; num = 456.14; str = "delectus"; + }}, new RefQueryParamObjExploded(false, 63038L, 164.29, "quas") {{ + bool = false; + int_ = 240829L; + num = 6772.63; + str = "architecto"; }}); if (res.res != null) { @@ -409,7 +413,10 @@ public class Application { .build(); HeaderParamsArrayResponse res = sdk.parameters.headerParamsArray(new String[]{{ - add("dolorum"), + add("consequatur"), + add("est"), + add("repellendus"), + add("porro"), }}); if (res.res != null) { @@ -446,11 +453,15 @@ public class Application { .build(); HeaderParamsMapResponse res = sdk.parameters.headerParamsMap(new java.util.HashMap() {{ - put("quae", "aut"); + put("ut", "facilis"); + put("cupiditate", "qui"); + put("quae", "laudantium"); + put("odio", "occaecati"); }}, new java.util.HashMap() {{ - put("itaque", "consequatur"); - put("est", "repellendus"); - put("porro", "doloribus"); + put("quisquam", "vero"); + put("omnis", "quis"); + put("ipsum", "delectus"); + put("voluptate", "consectetur"); }}); if (res.res != null) { @@ -492,10 +503,10 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - HeaderParamsObjectResponse res = sdk.parameters.headerParamsObject(new SimpleObject("laudantium", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00Z"), Enum.TWO, 2.2222222, 999999L, 1, SimpleObjectInt32Enum.SIXTY_NINE, SimpleObjectIntEnum.Second, 1.1, "example") {{ - any = "ut"; - bigint = 703495L; - bigintStr = "cupiditate"; + HeaderParamsObjectResponse res = sdk.parameters.headerParamsObject(new SimpleObject("quod", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00Z"), Enum.TWO, 2.2222222, 999999L, 1, SimpleObjectInt32Enum.SIXTY_NINE, SimpleObjectIntEnum.Second, 1.1, "example") {{ + any = "vero"; + bigint = 949319L; + bigintStr = "dignissimos"; bool = true; boolOpt = true; date = LocalDate.parse("2020-01-01"); @@ -504,17 +515,17 @@ public class Application { float32 = 2.2222222; int_ = 999999L; int32 = 1; - int32Enum = SimpleObjectInt32Enum.FIFTY_FIVE; - intEnum = SimpleObjectIntEnum.First; + int32Enum = SimpleObjectInt32Enum.ONE_HUNDRED_AND_EIGHTY_ONE; + intEnum = SimpleObjectIntEnum.Third; intOptNull = 999999L; num = 1.1; numOptNull = 1.1; str = "example"; strOpt = "optional example"; - }}, new SimpleObject("ipsum", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00Z"), Enum.TWO, 2.2222222, 999999L, 1, SimpleObjectInt32Enum.ONE_HUNDRED_AND_EIGHTY_ONE, SimpleObjectIntEnum.Second, 1.1, "example") {{ - any = "voluptatibus"; - bigint = 787542L; - bigintStr = "vero"; + }}, new SimpleObject("illum", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00Z"), Enum.TWO, 2.2222222, 999999L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1, "example") {{ + any = "facilis"; + bigint = 874288L; + bigintStr = "ducimus"; bool = true; boolOpt = true; date = LocalDate.parse("2020-01-01"); @@ -523,8 +534,8 @@ public class Application { float32 = 2.2222222; int_ = 999999L; int32 = 1; - int32Enum = SimpleObjectInt32Enum.SIXTY_NINE; - intEnum = SimpleObjectIntEnum.Second; + int32Enum = SimpleObjectInt32Enum.FIFTY_FIVE; + intEnum = SimpleObjectIntEnum.Third; intOptNull = 999999L; num = 1.1; numOptNull = 1.1; @@ -565,7 +576,7 @@ public class Application { .setGlobalQueryParam("some example global query param") .build(); - HeaderParamsPrimitiveResponse res = sdk.parameters.headerParamsPrimitive(false, 231701L, 8788.7, "tenetur"); + HeaderParamsPrimitiveResponse res = sdk.parameters.headerParamsPrimitive(false, 773326L, 132.36, "voluptatibus"); if (res.res != null) { // handle response @@ -736,10 +747,10 @@ public class Application { numOptNull = 1.1; strOpt = "optional example"; }};, "debitis") {{ - any = new SimpleObject("facilis", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00Z"), Enum.TWO, 2.2222222, 999999L, 1, SimpleObjectInt32Enum.ONE_HUNDRED_AND_EIGHTY_ONE, SimpleObjectIntEnum.Second, 1.1, "example") {{ - any = "hic"; - bigint = 715561L; - bigintStr = "quod"; + any = new SimpleObject("iusto", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00Z"), Enum.TWO, 2.2222222, 999999L, 1, SimpleObjectInt32Enum.ONE_HUNDRED_AND_EIGHTY_ONE, SimpleObjectIntEnum.Second, 1.1, "example") {{ + any = "nulla"; + bigint = 148141L; + bigintStr = "porro"; bool = true; boolOpt = true; date = LocalDate.parse("2020-01-01"); @@ -748,8 +759,8 @@ public class Application { float32 = 2.2222222; int_ = 999999L; int32 = 1; - int32Enum = SimpleObjectInt32Enum.SIXTY_NINE; - intEnum = SimpleObjectIntEnum.Second; + int32Enum = SimpleObjectInt32Enum.ONE_HUNDRED_AND_EIGHTY_ONE; + intEnum = SimpleObjectIntEnum.Third; intOptNull = 999999L; num = 1.1; numOptNull = 1.1; @@ -757,10 +768,10 @@ public class Application { strOpt = "optional example"; }}; arr = new org.openapis.openapi.models.shared.SimpleObject[]{{ - add(new SimpleObject("aut", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00Z"), Enum.TWO, 2.2222222, 999999L, 1, SimpleObjectInt32Enum.ONE_HUNDRED_AND_EIGHTY_ONE, SimpleObjectIntEnum.Second, 1.1, "example") {{ - any = "quibusdam"; - bigint = 848944L; - bigintStr = "sequi"; + add(new SimpleObject("vel", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00Z"), Enum.TWO, 2.2222222, 999999L, 1, SimpleObjectInt32Enum.ONE_HUNDRED_AND_EIGHTY_ONE, SimpleObjectIntEnum.First, 1.1, "example") {{ + any = "officia"; + bigint = 269479L; + bigintStr = "ipsam"; bool = true; boolOpt = true; date = LocalDate.parse("2020-01-01"); @@ -770,27 +781,7 @@ public class Application { int_ = 999999L; int32 = 1; int32Enum = SimpleObjectInt32Enum.SIXTY_NINE; - intEnum = SimpleObjectIntEnum.Third; - intOptNull = 999999L; - num = 1.1; - numOptNull = 1.1; - str = "example"; - strOpt = "optional example"; - }}), - add(new SimpleObject("iusto", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00Z"), Enum.TWO, 2.2222222, 999999L, 1, SimpleObjectInt32Enum.ONE_HUNDRED_AND_EIGHTY_ONE, SimpleObjectIntEnum.Second, 1.1, "example") {{ - any = "nulla"; - bigint = 148141L; - bigintStr = "porro"; - bool = true; - boolOpt = true; - date = LocalDate.parse("2020-01-01"); - dateTime = OffsetDateTime.parse("2020-01-01T00:00:00Z"); - enum_ = Enum.TWO; - float32 = 2.2222222; - int_ = 999999L; - int32 = 1; - int32Enum = SimpleObjectInt32Enum.ONE_HUNDRED_AND_EIGHTY_ONE; - intEnum = SimpleObjectIntEnum.Third; + intEnum = SimpleObjectIntEnum.First; intOptNull = 999999L; num = 1.1; numOptNull = 1.1; @@ -799,28 +790,8 @@ public class Application { }}), }}; bool = false; - int_ = 4048L; + int_ = 189848L; map = new java.util.HashMap() {{ - put("tempora", new SimpleObject("magnam", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00Z"), Enum.TWO, 2.2222222, 999999L, 1, SimpleObjectInt32Enum.FIFTY_FIVE, SimpleObjectIntEnum.Second, 1.1, "example") {{ - any = "ipsam"; - bigint = 410492L; - bigintStr = "aspernatur"; - bool = true; - boolOpt = true; - date = LocalDate.parse("2020-01-01"); - dateTime = OffsetDateTime.parse("2020-01-01T00:00:00Z"); - enum_ = Enum.TWO; - float32 = 2.2222222; - int_ = 999999L; - int32 = 1; - int32Enum = SimpleObjectInt32Enum.SIXTY_NINE; - intEnum = SimpleObjectIntEnum.Third; - intOptNull = 999999L; - num = 1.1; - numOptNull = 1.1; - str = "example"; - strOpt = "optional example"; - }}); put("laudantium", new SimpleObject("nulla", true, LocalDate.parse("2020-01-01"), OffsetDateTime.parse("2020-01-01T00:00:00Z"), Enum.TWO, 2.2222222, 999999L, 1, SimpleObjectInt32Enum.SIXTY_NINE, SimpleObjectIntEnum.Third, 1.1, "example") {{ any = "dicta"; bigint = 224317L; diff --git a/java-client-sdk/gen.yaml b/java-client-sdk/gen.yaml index c990994b9..098633684 100755 --- a/java-client-sdk/gen.yaml +++ b/java-client-sdk/gen.yaml @@ -1,14 +1,14 @@ configVersion: 1.0.0 management: - docChecksum: 948d86c8c8659783f15ecb6484ae3368 + docChecksum: 76623f721a416be989cb70240cd8b7e1 docVersion: 0.0.1 - speakeasyVersion: 1.35.0 + speakeasyVersion: 1.36.3 generationVersion: 2.31.0 generation: sdkClassName: SDK singleTagPerOp: false java: - version: 1.2.0 + version: 1.2.1 artifactID: openapi companyEmail: info@mycompany.com companyName: My Company diff --git a/java-client-sdk/lib/build.gradle b/java-client-sdk/lib/build.gradle index 3bfe265f1..68a63461a 100755 --- a/java-client-sdk/lib/build.gradle +++ b/java-client-sdk/lib/build.gradle @@ -42,7 +42,7 @@ publishing { maven(MavenPublication) { groupId = 'org.openapis' artifactId = 'openapi' - version = '1.2.0' + version = '1.2.1' from components.java diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/Generation.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/Generation.java index c9de806e6..56306ebfe 100755 --- a/java-client-sdk/lib/src/main/java/org/openapis/openapi/Generation.java +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/Generation.java @@ -163,7 +163,7 @@ public org.openapis.openapi.models.operations.DeprecatedNoCommentsGetResponse de */ @Deprecated public org.openapis.openapi.models.operations.DeprecatedWithCommentsGetResponse deprecatedWithCommentsGet() throws Exception { - return this.deprecatedWithCommentsGet(null); + return this.deprecatedWithCommentsGet(null, null); } /** @@ -175,8 +175,22 @@ public org.openapis.openapi.models.operations.DeprecatedWithCommentsGetResponse */ @Deprecated public org.openapis.openapi.models.operations.DeprecatedWithCommentsGetResponse deprecatedWithCommentsGet(String deprecatedParameter) throws Exception { + return this.deprecatedWithCommentsGet(deprecatedParameter, null); + } + + /** + * This is an endpoint setup to test deprecation with comments + * @param deprecatedParameter This is a string parameter + * @param newParameter This is a string parameter + * @return the response from the API call + * @throws Exception if the API call fails + * @deprecated this method will be removed in a future release, please migrate away from it as soon as possible + */ + @Deprecated + public org.openapis.openapi.models.operations.DeprecatedWithCommentsGetResponse deprecatedWithCommentsGet(String deprecatedParameter, String newParameter) throws Exception { org.openapis.openapi.models.operations.DeprecatedWithCommentsGetRequest request = new org.openapis.openapi.models.operations.DeprecatedWithCommentsGetRequest(); request.deprecatedParameter=deprecatedParameter; + request.newParameter=newParameter; String baseUrl = this._serverUrl; String url = org.openapis.openapi.utils.Utils.generateURL(baseUrl, "/anything/deprecatedWithComments"); diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/SDK.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/SDK.java index 7fff6d4ce..d58efd95c 100755 --- a/java-client-sdk/lib/src/main/java/org/openapis/openapi/SDK.java +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/SDK.java @@ -94,7 +94,7 @@ public class SDK { private org.openapis.openapi.models.shared.Security _security; private String _serverUrl; private String _language = "java"; - private String _sdkVersion = "1.2.0"; + private String _sdkVersion = "1.2.1"; private String _genVersion = "2.31.0"; java.util.Map>> _globals; diff --git a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/DeprecatedWithCommentsGetRequest.java b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/DeprecatedWithCommentsGetRequest.java index 53e4375a5..457133cf2 100755 --- a/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/DeprecatedWithCommentsGetRequest.java +++ b/java-client-sdk/lib/src/main/java/org/openapis/openapi/models/operations/DeprecatedWithCommentsGetRequest.java @@ -21,5 +21,16 @@ public DeprecatedWithCommentsGetRequest withDeprecatedParameter(String deprecate return this; } + /** + * This is a string parameter + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=newParameter") + public String newParameter; + + public DeprecatedWithCommentsGetRequest withNewParameter(String newParameter) { + this.newParameter = newParameter; + return this; + } + public DeprecatedWithCommentsGetRequest(){} } diff --git a/java-client-sdk/lib/src/test/java/org/openapis/openapi/TelemetryTests.java b/java-client-sdk/lib/src/test/java/org/openapis/openapi/TelemetryTests.java index d36d6c11b..1f0af2c27 100755 --- a/java-client-sdk/lib/src/test/java/org/openapis/openapi/TelemetryTests.java +++ b/java-client-sdk/lib/src/test/java/org/openapis/openapi/TelemetryTests.java @@ -23,7 +23,7 @@ void testTelemetryUserAgentGet() throws Exception { assertNotNull(res); assertEquals(200, res.statusCode); - assertEquals("speakeasy-sdk/java 1.2.0 2.31.0", res.res.headers.get("X-Speakeasy-User-Agent")); + assertEquals("speakeasy-sdk/java 1.2.1 2.31.0", res.res.headers.get("X-Speakeasy-User-Agent")); } @Test @@ -40,6 +40,6 @@ void testTelemetrySpeakeasyUserAgentGet() throws Exception { assertNotNull(res); assertEquals(200, res.statusCode); assertEquals(userAgent, res.res.headers.get("User-Agent")); - assertEquals("speakeasy-sdk/java 1.2.0 2.31.0", res.res.headers.get("X-Speakeasy-User-Agent")); + assertEquals("speakeasy-sdk/java 1.2.1 2.31.0", res.res.headers.get("X-Speakeasy-User-Agent")); } } diff --git a/php-client-sdk/docs/generation/README.md b/php-client-sdk/docs/generation/README.md index 8c5d5f7b0..ed3d428db 100755 --- a/php-client-sdk/docs/generation/README.md +++ b/php-client-sdk/docs/generation/README.md @@ -128,7 +128,7 @@ $sdk = SDK::builder() try { - $response = $sdk->generation->deprecatedWithCommentsGet('a'); + $response = $sdk->generation->deprecatedWithCommentsGet('a', 'dolorum'); if ($response->statusCode === 200) { // handle response @@ -212,10 +212,10 @@ $sdk = SDK::builder() try { $requestBody = new IgnoresPostApplicationJSON(); - $requestBody->callbackUrl = 'https://intrepid-ikebana.org'; - $requestBody->testProp = 'maiores'; + $requestBody->callbackUrl = 'http://irritating-standardisation.org'; + $requestBody->testProp = 'rerum'; - $response = $sdk->generation->ignoresPost($requestBody, 'rerum'); + $response = $sdk->generation->ignoresPost($requestBody, 'dicta'); if ($response->httpBinSimpleJsonObject !== null) { // handle response @@ -288,7 +288,7 @@ $sdk = SDK::builder() try { $request = new UsageExamplePostRequest(); $request->requestBody = new UsageExamplePostRequestBody(); - $request->requestBody->email = 'Elfrieda.Runolfsson39@gmail.com'; + $request->requestBody->email = 'Obie.Schulist@gmail.com'; $request->requestBody->formatEmail = 'Shaniya.Friesen@hotmail.com'; $request->requestBody->formatUri = 'https://white-printing.name'; $request->requestBody->formatUuid = 'ba88f3a6-6997-4074-ba44-69b6e2141959'; diff --git a/php-client-sdk/gen.yaml b/php-client-sdk/gen.yaml index 9312b9d1c..e09cb074d 100755 --- a/php-client-sdk/gen.yaml +++ b/php-client-sdk/gen.yaml @@ -1,14 +1,14 @@ configVersion: 1.0.0 management: - docChecksum: 948d86c8c8659783f15ecb6484ae3368 + docChecksum: 76623f721a416be989cb70240cd8b7e1 docVersion: 0.0.1 - speakeasyVersion: 1.35.0 + speakeasyVersion: 1.36.3 generationVersion: 2.31.0 generation: sdkClassName: SDK singleTagPerOp: false php: - version: 1.2.0 + version: 1.2.1 maxMethodParams: 5 namespace: OpenAPI\OpenAPI packageName: openapi/openapi diff --git a/php-client-sdk/src/Generation.php b/php-client-sdk/src/Generation.php index ace408e33..82073ce2a 100755 --- a/php-client-sdk/src/Generation.php +++ b/php-client-sdk/src/Generation.php @@ -152,17 +152,20 @@ public function deprecatedNoCommentsGet( * This is an endpoint setup to test deprecation with comments * * @param ?string $deprecatedParameter + * @param ?string $newParameter * @return \OpenAPI\OpenAPI\Models\Operations\DeprecatedWithCommentsGetResponse * @deprecated this method will be removed in a future release, please migrate away from it as soon as possible */ public function deprecatedWithCommentsGet( ?string $deprecatedParameter = null, + ?string $newParameter = null, ): \OpenAPI\OpenAPI\Models\Operations\DeprecatedWithCommentsGetResponse { trigger_error('Method ' . __METHOD__ . ' is deprecated', E_USER_DEPRECATED); $request = new \OpenAPI\OpenAPI\Models\Operations\DeprecatedWithCommentsGetRequest(); $request->deprecatedParameter = $deprecatedParameter; + $request->newParameter = $newParameter; $baseUrl = $this->_serverUrl; $url = Utils\Utils::generateUrl($baseUrl, '/anything/deprecatedWithComments'); diff --git a/php-client-sdk/src/Models/Operations/DeprecatedWithCommentsGetRequest.php b/php-client-sdk/src/Models/Operations/DeprecatedWithCommentsGetRequest.php index 1b19f4aa9..271d0e39f 100755 --- a/php-client-sdk/src/Models/Operations/DeprecatedWithCommentsGetRequest.php +++ b/php-client-sdk/src/Models/Operations/DeprecatedWithCommentsGetRequest.php @@ -20,8 +20,17 @@ class DeprecatedWithCommentsGetRequest #[SpeakeasyMetadata('queryParam:style=form,explode=true,name=deprecatedParameter')] public ?string $deprecatedParameter = null; + /** + * This is a string parameter + * + * @var ?string $newParameter + */ + #[SpeakeasyMetadata('queryParam:style=form,explode=true,name=newParameter')] + public ?string $newParameter = null; + public function __construct() { $this->deprecatedParameter = null; + $this->newParameter = null; } } diff --git a/php-client-sdk/src/SDK.php b/php-client-sdk/src/SDK.php index 2b1a6a69a..6070f6041 100755 --- a/php-client-sdk/src/SDK.php +++ b/php-client-sdk/src/SDK.php @@ -120,7 +120,7 @@ class SDK private ?Models\Shared\Security $_security; private string $_serverUrl; private string $_language = 'php'; - private string $_sdkVersion = '1.2.0'; + private string $_sdkVersion = '1.2.1'; private string $_genVersion = '2.31.0'; /** @var array>> */ private ?array $_globals; diff --git a/php-client-sdk/tests/TelemetryTest.php b/php-client-sdk/tests/TelemetryTest.php index ecfae90fc..608515622 100755 --- a/php-client-sdk/tests/TelemetryTest.php +++ b/php-client-sdk/tests/TelemetryTest.php @@ -20,7 +20,7 @@ public function testTelemetryUserAgentGet(): void $this->assertNotNull($response); $this->assertEquals(200, $response->statusCode); - $this->assertEquals('speakeasy-sdk/php 1.2.0 2.31.0', $response->res->headers['X-Speakeasy-User-Agent']); + $this->assertEquals('speakeasy-sdk/php 1.2.1 2.31.0', $response->res->headers['X-Speakeasy-User-Agent']); } public function testTelemetrySpeakeasyUserAgentGet(): void @@ -38,6 +38,6 @@ public function testTelemetrySpeakeasyUserAgentGet(): void $this->assertNotNull($response); $this->assertEquals(200, $response->statusCode); $this->assertEquals($userAgent, $response->res->headers['User-Agent']); - $this->assertEquals('speakeasy-sdk/php 1.2.0 2.31.0', $response->res->headers['X-Speakeasy-User-Agent']); + $this->assertEquals('speakeasy-sdk/php 1.2.1 2.31.0', $response->res->headers['X-Speakeasy-User-Agent']); } } diff --git a/python-client-sdk/docs/generation/README.md b/python-client-sdk/docs/generation/README.md index e115f36fc..c31733057 100755 --- a/python-client-sdk/docs/generation/README.md +++ b/python-client-sdk/docs/generation/README.md @@ -108,7 +108,7 @@ s = sdk.SDK( ) -res = s.generation.deprecated_with_comments_get('aspernatur') +res = s.generation.deprecated_with_comments_get('aspernatur', 'architecto') if res.status_code == 200: # handle response @@ -178,9 +178,9 @@ s = sdk.SDK( res = s.generation.ignores_post(operations.IgnoresPostApplicationJSON( - callback_url='http://foolhardy-bolero.name', - test_prop='ullam', -), 'provident') + callback_url='http://brisk-mobile.info', + test_prop='provident', +), 'quos') if res.http_bin_simple_json_object is not None: # handle response @@ -230,17 +230,17 @@ s = sdk.SDK( req = operations.UsageExamplePostRequest( request_body=operations.UsageExamplePostRequestBody( - email='Kiley_Bartoletti@yahoo.com', - format_email='Emmie89@yahoo.com', - format_uri='http://handy-borrowing.info', - format_uuid='fe4c8b71-1e5b-47fd-aed0-28921cddc692', - hostname='illegal-antique.com', - ipv4='251.178.95.116', - ipv6='6b0d:5f0d:30c5:fbb2:5870:5320:2c73:d5fe', + email='Alexis_OHara32@yahoo.com', + format_email='Dallas36@yahoo.com', + format_uri='http://infinite-winery.org', + format_uuid='4c8b711e-5b7f-4d2e-9028-921cddc69260', + hostname='big-willingness.net', + ipv4='95.116.107.184', + ipv6='0d5f:0d30:c5fb:b258:7053:202c:73d5:fe9b', simple_object=shared.SimpleObject( - any='omnis', - bigint=704415, - bigint_str='perspiciatis', + any='perspiciatis', + bigint=31838, + bigint_str='porro', bool=True, bool_opt=True, date_=dateutil.parser.parse('2020-01-01').date(), @@ -250,16 +250,16 @@ req = operations.UsageExamplePostRequest( int=999999, int32=1, int32_enum=shared.SimpleObjectInt32Enum.FIFTY_FIVE, - int_enum=shared.SimpleObjectIntEnum.THIRD, + int_enum=shared.SimpleObjectIntEnum.SECOND, int_opt_null=999999, num=1.1, num_opt_null=1.1, str_='example', str_opt='optional example', ), - unknown='consequuntur', - uri='https://petty-atom.name', - uuid='b3fe49a8-d9cb-4f48-a333-23f9b77f3a41', + unknown='error', + uri='http://noxious-pronunciation.biz', + uuid='fe49a8d9-cbf4-4863-b323-f9b77f3a4100', ), bool_parameter=False, date_parameter=dateutil.parser.parse('2020-01-01').date(), diff --git a/python-client-sdk/docs/globals/README.md b/python-client-sdk/docs/globals/README.md index d249a1683..ac120337c 100755 --- a/python-client-sdk/docs/globals/README.md +++ b/python-client-sdk/docs/globals/README.md @@ -26,7 +26,7 @@ s = sdk.SDK( ) -res = s.globals.global_path_parameter_get(58029) +res = s.globals.global_path_parameter_get(434417) if res.res is not None: # handle response @@ -49,7 +49,7 @@ s = sdk.SDK( ) -res = s.globals.globals_query_parameter_get('ipsa') +res = s.globals.globals_query_parameter_get('odio') if res.res is not None: # handle response diff --git a/python-client-sdk/docs/parameters/README.md b/python-client-sdk/docs/parameters/README.md index 2c538de16..15f96bf78 100755 --- a/python-client-sdk/docs/parameters/README.md +++ b/python-client-sdk/docs/parameters/README.md @@ -44,18 +44,16 @@ s = sdk.SDK( res = s.parameters.deep_object_query_params_map({ - "odio": 'quaerat', "accusamus": 'quidem', + "voluptatibus": 'voluptas', }, { - "voluptas": [ - 'eos', - 'atque', + "eos": [ 'sit', + 'fugiat', + 'ab', ], - "fugiat": [ - 'soluta', - ], - "dolorum": [ + "soluta": [ + 'iusto', 'voluptate', 'dolorum', ], diff --git a/python-client-sdk/gen.yaml b/python-client-sdk/gen.yaml index 52489d30e..10bc90d97 100755 --- a/python-client-sdk/gen.yaml +++ b/python-client-sdk/gen.yaml @@ -1,14 +1,14 @@ configVersion: 1.0.0 management: - docChecksum: 948d86c8c8659783f15ecb6484ae3368 + docChecksum: 76623f721a416be989cb70240cd8b7e1 docVersion: 0.0.1 - speakeasyVersion: 1.35.0 + speakeasyVersion: 1.36.3 generationVersion: 2.31.0 generation: sdkClassName: SDK singleTagPerOp: false python: - version: 1.2.0 + version: 1.2.1 author: Speakeasy description: Python Client SDK Generated by Speakeasy maxMethodParams: 5 diff --git a/python-client-sdk/setup.py b/python-client-sdk/setup.py index 758a2146c..61b03b13e 100755 --- a/python-client-sdk/setup.py +++ b/python-client-sdk/setup.py @@ -10,7 +10,7 @@ setuptools.setup( name="openapi", - version="1.2.0", + version="1.2.1", author="Speakeasy", description="Python Client SDK Generated by Speakeasy", long_description=long_description, diff --git a/python-client-sdk/src/sdk/generation.py b/python-client-sdk/src/sdk/generation.py index bcfc4c48d..a96fc6890 100755 --- a/python-client-sdk/src/sdk/generation.py +++ b/python-client-sdk/src/sdk/generation.py @@ -96,13 +96,14 @@ def deprecated_no_comments_get(self, deprecated_parameter: Optional[str] = None) return res - def deprecated_with_comments_get(self, deprecated_parameter: Optional[str] = None) -> operations.DeprecatedWithCommentsGetResponse: + def deprecated_with_comments_get(self, deprecated_parameter: Optional[str] = None, new_parameter: Optional[str] = None) -> operations.DeprecatedWithCommentsGetResponse: r"""This is an endpoint setup to test deprecation with comments Deprecated: this method will be removed in a future release, please migrate away from it as soon as possible """ request = operations.DeprecatedWithCommentsGetRequest( deprecated_parameter=deprecated_parameter, + new_parameter=new_parameter, ) base_url = self._server_url diff --git a/python-client-sdk/src/sdk/models/operations/deprecatedwithcommentsget.py b/python-client-sdk/src/sdk/models/operations/deprecatedwithcommentsget.py index 0792518e8..bf4ccfdef 100755 --- a/python-client-sdk/src/sdk/models/operations/deprecatedwithcommentsget.py +++ b/python-client-sdk/src/sdk/models/operations/deprecatedwithcommentsget.py @@ -14,6 +14,8 @@ class DeprecatedWithCommentsGetRequest: Deprecated: this field will be removed in a future release, please migrate away from it as soon as possible """ + new_parameter: Optional[str] = dataclasses.field(default=None, metadata={'query_param': { 'field_name': 'newParameter', 'style': 'form', 'explode': True }}) + r"""This is a string parameter""" @dataclasses.dataclass diff --git a/python-client-sdk/src/sdk/sdk.py b/python-client-sdk/src/sdk/sdk.py index c3c051684..51071d427 100755 --- a/python-client-sdk/src/sdk/sdk.py +++ b/python-client-sdk/src/sdk/sdk.py @@ -62,7 +62,7 @@ class SDK: _security_client: requests_http.Session _server_url: str = SERVERS[0] _language: str = "python" - _sdk_version: str = "1.2.0" + _sdk_version: str = "1.2.1" _gen_version: str = "2.31.0" _globals: dict[str, dict[str, dict[str, Any]]] diff --git a/python-client-sdk/tests/test_telemetry.py b/python-client-sdk/tests/test_telemetry.py index e69a4800b..d0f1249ef 100755 --- a/python-client-sdk/tests/test_telemetry.py +++ b/python-client-sdk/tests/test_telemetry.py @@ -17,7 +17,7 @@ def test_telemetry_user_agent_get(): assert res is not None assert res.status_code == 200 assert res.res is not None - assert res.res.headers['X-Speakeasy-User-Agent'] == 'speakeasy-sdk/python 1.2.0 2.31.0' + assert res.res.headers['X-Speakeasy-User-Agent'] == 'speakeasy-sdk/python 1.2.1 2.31.0' def test_telemetry_speakeasy_user_agent_get(): @@ -33,4 +33,4 @@ def test_telemetry_speakeasy_user_agent_get(): assert res.status_code == 200 assert res.res is not None assert res.res.headers['User-Agent'] == user_agent - assert res.res.headers['X-Speakeasy-User-Agent'] == 'speakeasy-sdk/python 1.2.0 2.31.0' \ No newline at end of file + assert res.res.headers['X-Speakeasy-User-Agent'] == 'speakeasy-sdk/python 1.2.1 2.31.0' \ No newline at end of file diff --git a/ruby-client-sdk/docs/generation/README.md b/ruby-client-sdk/docs/generation/README.md index bc9d9c65e..4ae38e6b2 100755 --- a/ruby-client-sdk/docs/generation/README.md +++ b/ruby-client-sdk/docs/generation/README.md @@ -96,6 +96,7 @@ s = sdk::SDK.new req = Operations::Operations::DeprecatedWithCommentsGetRequest( query_params=Operations::DeprecatedWithCommentsGetRequest( deprecated_parameter="sit", + new_parameter="fugiat", ), ) @@ -156,14 +157,14 @@ s = sdk::SDK.new req = Operations::Operations::IgnoresPostRequest( query_params=Operations::IgnoresPostRequest( request_body=Operations::IgnoresPostApplicationJSON( - callback_url="https://best-respite.net", - test_prop="iusto", + callback_url="http://shimmering-populist.info", + test_prop="voluptate", ), - test_param="voluptate", + test_param="dolorum", ), request_body=Operations::IgnoresPostApplicationJSON( - callback_url="https://miserable-octave.org", - test_prop="distinctio", + callback_url="https://overlooked-terminal.net", + test_prop="asperiores", ), ) @@ -221,17 +222,17 @@ req = Operations::Operations::UsageExamplePostRequest( ), query_params=Operations::UsageExamplePostRequest( request_body=Operations::UsageExamplePostRequestBody( - email="Janessa_Emmerich@hotmail.com", - format_email="Diamond22@hotmail.com", - format_uri="https://uncomfortable-evocation.org", - format_uuid="6a95d8a0-d446-4ce2-af7a-73cf3be453f8", - hostname="knowing-amenity.net", - ipv4="53.39.108.186", - ipv6="5a73:429c:db1a:8422:bb67:9d23:2271:5bf0", + email="Curt_Klocko@yahoo.com", + format_email="Brigitte75@gmail.com", + format_uri="https://fumbling-throne.info", + format_uuid="a95d8a0d-446c-4e2a-b7a7-3cf3be453f87", + hostname="alienated-quality.biz", + ipv4="39.108.186.95", + ipv6="a734:29cd:b1a8:422b:b679:d232:2715:bf0c", simple_object=Shared::SimpleObject( - any="cumque", - bigint=746994, - bigint_str="nobis", + any="soluta", + bigint=748664, + bigint_str="et", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -240,17 +241,17 @@ req = Operations::Operations::UsageExamplePostRequest( float32=2.2222222, int=999999, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, - int_enum=Shared::SimpleObjectIntEnum::THIRD, + int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, + int_enum=Shared::SimpleObjectIntEnum::FIRST, int_opt_null=999999, num=1.1, num_opt_null=1.1, str_="example", str_opt="optional example", ), - unknown="ipsum", - uri="http://shrill-medium.net", - uuid="90f3443a-1108-4e0a-9cf4-b921879fce95", + unknown="veritatis", + uri="https://mushy-reflection.name", + uuid="0f3443a1-108e-40ad-8f4b-921879fce953", ), bool_parameter=false, date_parameter=Date.parse("2020-01-01"), @@ -264,17 +265,17 @@ req = Operations::Operations::UsageExamplePostRequest( str_parameter="example", ), request_body=Operations::UsageExamplePostRequestBody( - email="Vida87@gmail.com", - format_email="Jeramie_Weissnat48@hotmail.com", - format_uri="https://rubbery-surname.info", - format_uuid="4dd39c0f-5d2c-4ff7-870a-45626d436813", - hostname="wordy-bother.info", - ipv4="220.145.249.87", - ipv6="fce6:c556:146c:3e25:0fb0:08c4:2e14:1aac", + email="Jackie_Feeney49@hotmail.com", + format_email="Michel_Schmidt@hotmail.com", + format_uri="https://trustworthy-landscape.biz", + format_uuid="dd39c0f5-d2cf-4f7c-b0a4-5626d436813f", + hostname="buoyant-gun.org", + ipv4="145.249.87.245", + ipv6="ce6c:5561:46c3:e250:fb00:8c42:e141:aac3", simple_object=Shared::SimpleObject( - any="velit", - bigint=432148, - bigint_str="autem", + any="eum", + bigint=420539, + bigint_str="nobis", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -283,17 +284,17 @@ req = Operations::Operations::UsageExamplePostRequest( float32=2.2222222, int=999999, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, - int_enum=Shared::SimpleObjectIntEnum::SECOND, + int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, + int_enum=Shared::SimpleObjectIntEnum::THIRD, int_opt_null=999999, num=1.1, num_opt_null=1.1, str_="example", str_opt="optional example", ), - unknown="assumenda", - uri="https://heavenly-receipt.com", - uuid="44290747-4778-4a7b-9466-d28c10ab3cdc", + unknown="nulla", + uri="http://scrawny-booty.biz", + uuid="42907474-778a-47bd-866d-28c10ab3cdca", ), ) diff --git a/ruby-client-sdk/docs/parameters/README.md b/ruby-client-sdk/docs/parameters/README.md index e7c98fced..4a6a1d895 100755 --- a/ruby-client-sdk/docs/parameters/README.md +++ b/ruby-client-sdk/docs/parameters/README.md @@ -40,18 +40,15 @@ s = sdk::SDK.new req = Operations::Operations::DeepObjectQueryParamsMapRequest( query_params=Operations::DeepObjectQueryParamsMapRequest( map_param={ - "eius": "eos", - "voluptas": "ab", - "cupiditate": "consequatur", + "eos": "voluptas", + "ab": "cupiditate", }, map_arr_param={ - "debitis": [ + "tempora": [ + "ipsam", "aspernatur", "sequi", - ], - "quo": [ - "recusandae", - "aperiam", + "quo", ], }, ), @@ -78,9 +75,9 @@ s = sdk::SDK.new req = Operations::Operations::DeepObjectQueryParamsObjectRequest( query_params=Operations::DeepObjectQueryParamsObjectRequest( obj_param=Shared::SimpleObject( - any="distinctio", - bigint=799796, - bigint_str="dignissimos", + any="esse", + bigint=925164, + bigint_str="aperiam", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -89,8 +86,8 @@ req = Operations::Operations::DeepObjectQueryParamsObjectRequest( float32=2.2222222, int=999999, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, - int_enum=Shared::SimpleObjectIntEnum::SECOND, + int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, + int_enum=Shared::SimpleObjectIntEnum::THIRD, int_opt_null=999999, num=1.1, num_opt_null=1.1, @@ -99,9 +96,8 @@ req = Operations::Operations::DeepObjectQueryParamsObjectRequest( ), obj_arr_param=Operations::DeepObjectQueryParamsObjectObjArrParam( arr=[ - "accusamus", - "aliquam", - "odio", + "inventore", + "nihil", ], ), ), @@ -128,14 +124,14 @@ s = sdk::SDK.new req = Operations::Operations::FormQueryParamsArrayRequest( query_params=Operations::FormQueryParamsArrayRequest( arr_param=[ - "commodi", - "sapiente", - "dolores", + "accusamus", + "aliquam", + "odio", ], arr_param_exploded=[ - 475289, - 35362, - 783648, + 414567, + 959434, + 174112, ], ), ) @@ -161,11 +157,12 @@ s = sdk::SDK.new req = Operations::Operations::FormQueryParamsMapRequest( query_params=Operations::FormQueryParamsMapRequest( map_param={ + "molestiae": "accusantium", + "porro": "eum", "quas": "praesentium", - "consequuntur": "deleniti", }, map_param_exploded={ - "fuga": 649463, + "deleniti": 143829, }, ), ) @@ -191,9 +188,9 @@ s = sdk::SDK.new req = Operations::Operations::FormQueryParamsObjectRequest( query_params=Operations::FormQueryParamsObjectRequest( obj_param_exploded=Shared::SimpleObject( - any="incidunt", - bigint=539224, - bigint_str="explicabo", + any="fuga", + bigint=649463, + bigint_str="incidunt", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -202,8 +199,8 @@ req = Operations::Operations::FormQueryParamsObjectRequest( float32=2.2222222, int=999999, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, - int_enum=Shared::SimpleObjectIntEnum::SECOND, + int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, + int_enum=Shared::SimpleObjectIntEnum::FIRST, int_opt_null=999999, num=1.1, num_opt_null=1.1, @@ -211,9 +208,9 @@ req = Operations::Operations::FormQueryParamsObjectRequest( str_opt="optional example", ), obj_param=Shared::SimpleObject( - any="fugit", - bigint=956406, - bigint_str="consequuntur", + any="minima", + bigint=392676, + bigint_str="fugit", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -222,7 +219,7 @@ req = Operations::Operations::FormQueryParamsObjectRequest( float32=2.2222222, int=999999, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, + int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, int_enum=Shared::SimpleObjectIntEnum::FIRST, int_opt_null=999999, num=1.1, @@ -254,9 +251,9 @@ s = sdk::SDK.new req = Operations::Operations::FormQueryParamsPrimitiveRequest( query_params=Operations::FormQueryParamsPrimitiveRequest( bool_param=false, - int_param=903984, - num_param=5789.22, - str_param="atque", + int_param=187131, + num_param=1294.12, + str_param="saepe", ), ) @@ -282,15 +279,15 @@ req = Operations::Operations::FormQueryParamsRefParamObjectRequest( query_params=Operations::FormQueryParamsRefParamObjectRequest( ref_obj_param=Shared::RefQueryParamObj( bool=false, - int=92260, - num=4569.11, - str_="eveniet", + int=578922, + num=5438.06, + str_="et", ), ref_obj_param_exploded=Shared::RefQueryParamObjExploded( bool=false, - int=882042, - num=829.71, - str_="esse", + int=456911, + num=9105.45, + str_="accusamus", ), ), ) @@ -316,10 +313,7 @@ s = sdk::SDK.new req = Operations::Operations::HeaderParamsArrayRequest( headers=Operations::HeaderParamsArrayRequest( x_header_array=[ - "nam", - "vero", - "aliquid", - "quasi", + "esse", ], ), ) @@ -345,13 +339,15 @@ s = sdk::SDK.new req = Operations::Operations::HeaderParamsMapRequest( headers=Operations::HeaderParamsMapRequest( x_header_map={ - "vel": "harum", - "molestiae": "rerum", - "occaecati": "minima", - "distinctio": "eligendi", + "nam": "vero", + "aliquid": "quasi", + "saepe": "vel", + "harum": "molestiae", }, x_header_map_explode={ - "culpa": "tempore", + "occaecati": "minima", + "distinctio": "eligendi", + "sit": "culpa", }, ), ) @@ -377,9 +373,9 @@ s = sdk::SDK.new req = Operations::Operations::HeaderParamsObjectRequest( headers=Operations::HeaderParamsObjectRequest( x_header_obj=Shared::SimpleObject( - any="adipisci", - bigint=766964, - bigint_str="consequuntur", + any="tempore", + bigint=240020, + bigint_str="cumque", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -389,7 +385,7 @@ req = Operations::Operations::HeaderParamsObjectRequest( int=999999, int32=1, int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, - int_enum=Shared::SimpleObjectIntEnum::THIRD, + int_enum=Shared::SimpleObjectIntEnum::FIRST, int_opt_null=999999, num=1.1, num_opt_null=1.1, @@ -397,9 +393,9 @@ req = Operations::Operations::HeaderParamsObjectRequest( str_opt="optional example", ), x_header_obj_explode=Shared::SimpleObject( - any="quaerat", - bigint=959167, - bigint_str="consectetur", + any="minus", + bigint=308286, + bigint_str="sapiente", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -408,7 +404,7 @@ req = Operations::Operations::HeaderParamsObjectRequest( float32=2.2222222, int=999999, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, + int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, int_enum=Shared::SimpleObjectIntEnum::SECOND, int_opt_null=999999, num=1.1, @@ -440,9 +436,9 @@ s = sdk::SDK.new req = Operations::Operations::HeaderParamsPrimitiveRequest( headers=Operations::HeaderParamsPrimitiveRequest( x_header_boolean=false, - x_header_integer=590984, - x_header_number=9537.22, - x_header_string="nulla", + x_header_integer=503427, + x_header_number=5909.84, + x_header_string="a", ), ) @@ -467,12 +463,12 @@ s = sdk::SDK.new req = Operations::Operations::JsonQueryParamsObjectRequest( query_params=Operations::JsonQueryParamsObjectRequest( deep_obj_param=Shared::DeepObject( - any="esse", + any="quas", arr=[ Shared::SimpleObject( - any="a", - bigint=621679, - bigint_str="sint", + any="quasi", + bigint=951875, + bigint_str="error", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -481,7 +477,7 @@ req = Operations::Operations::JsonQueryParamsObjectRequest( float32=2.2222222, int=999999, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, + int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, int_enum=Shared::SimpleObjectIntEnum::THIRD, int_opt_null=999999, num=1.1, @@ -489,34 +485,10 @@ req = Operations::Operations::JsonQueryParamsObjectRequest( str_="example", str_opt="optional example", ), - ], - bool=false, - int=157632, - map={ - "asperiores": Shared::SimpleObject( - any="facere", - bigint=85001, - bigint_str="consequuntur", - bool=true, - bool_opt=true, - date=Date.parse("2020-01-01"), - date_time=DateTime.iso8601('2020-01-01T00:00:00Z'), - enum=Shared::Enum::TWO, - float32=2.2222222, - int=999999, - int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, - int_enum=Shared::SimpleObjectIntEnum::SECOND, - int_opt_null=999999, - num=1.1, - num_opt_null=1.1, - str_="example", - str_opt="optional example", - ), - "culpa": Shared::SimpleObject( - any="aliquid", - bigint=949298, - bigint_str="quae", + Shared::SimpleObject( + any="possimus", + bigint=157632, + bigint_str="eveniet", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -526,17 +498,21 @@ req = Operations::Operations::JsonQueryParamsObjectRequest( int=999999, int32=1, int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, - int_enum=Shared::SimpleObjectIntEnum::SECOND, + int_enum=Shared::SimpleObjectIntEnum::THIRD, int_opt_null=999999, num=1.1, num_opt_null=1.1, str_="example", str_opt="optional example", ), - "in": Shared::SimpleObject( - any="eius", - bigint=727697, - bigint_str="illum", + ], + bool=false, + int=85001, + map={ + "quasi": Shared::SimpleObject( + any="similique", + bigint=633608, + bigint_str="aliquid", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -553,32 +529,12 @@ req = Operations::Operations::JsonQueryParamsObjectRequest( str_="example", str_opt="optional example", ), - "aliquam": Shared::SimpleObject( - any="sapiente", - bigint=119771, - bigint_str="ullam", - bool=true, - bool_opt=true, - date=Date.parse("2020-01-01"), - date_time=DateTime.iso8601('2020-01-01T00:00:00Z'), - enum=Shared::Enum::TWO, - float32=2.2222222, - int=999999, - int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, - int_enum=Shared::SimpleObjectIntEnum::SECOND, - int_opt_null=999999, - num=1.1, - num_opt_null=1.1, - str_="example", - str_opt="optional example", - ), }, - num=3917.74, + num=9367.47, obj=Shared::SimpleObject( - any="aut", - bigint=531849, - bigint_str="qui", + any="vel", + bigint=447378, + bigint_str="eius", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -588,20 +544,20 @@ req = Operations::Operations::JsonQueryParamsObjectRequest( int=999999, int32=1, int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, - int_enum=Shared::SimpleObjectIntEnum::SECOND, + int_enum=Shared::SimpleObjectIntEnum::THIRD, int_opt_null=999999, num=1.1, num_opt_null=1.1, str_="example", str_opt="optional example", ), - str_="deleniti", - type="itaque", + str_="soluta", + type="accusantium", ), simple_obj_param=Shared::SimpleObject( - any="dolorum", - bigint=99615, - bigint_str="omnis", + any="aliquam", + bigint=958983, + bigint_str="dicta", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -610,8 +566,8 @@ req = Operations::Operations::JsonQueryParamsObjectRequest( float32=2.2222222, int=999999, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, - int_enum=Shared::SimpleObjectIntEnum::FIRST, + int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, + int_enum=Shared::SimpleObjectIntEnum::SECOND, int_opt_null=999999, num=1.1, num_opt_null=1.1, @@ -642,9 +598,9 @@ s = sdk::SDK.new req = Operations::Operations::MixedQueryParamsRequest( query_params=Operations::MixedQueryParamsRequest( deep_object_param=Shared::SimpleObject( - any="at", - bigint=92027, - bigint_str="voluptate", + any="ullam", + bigint=391774, + bigint_str="aut", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -653,7 +609,7 @@ req = Operations::Operations::MixedQueryParamsRequest( float32=2.2222222, int=999999, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, + int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, int_enum=Shared::SimpleObjectIntEnum::FIRST, int_opt_null=999999, num=1.1, @@ -662,9 +618,9 @@ req = Operations::Operations::MixedQueryParamsRequest( str_opt="optional example", ), form_param=Shared::SimpleObject( - any="veritatis", - bigint=232744, - bigint_str="adipisci", + any="quibusdam", + bigint=401259, + bigint_str="deleniti", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -673,7 +629,7 @@ req = Operations::Operations::MixedQueryParamsRequest( float32=2.2222222, int=999999, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, + int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, int_enum=Shared::SimpleObjectIntEnum::THIRD, int_opt_null=999999, num=1.1, @@ -682,9 +638,9 @@ req = Operations::Operations::MixedQueryParamsRequest( str_opt="optional example", ), json_param=Shared::SimpleObject( - any="accusantium", - bigint=522371, - bigint_str="aut", + any="architecto", + bigint=609178, + bigint_str="tenetur", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -693,8 +649,8 @@ req = Operations::Operations::MixedQueryParamsRequest( float32=2.2222222, int=999999, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, - int_enum=Shared::SimpleObjectIntEnum::SECOND, + int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, + int_enum=Shared::SimpleObjectIntEnum::THIRD, int_opt_null=999999, num=1.1, num_opt_null=1.1, @@ -725,9 +681,9 @@ s = sdk::SDK.new req = Operations::Operations::PathParameterJsonRequest( path_params=Operations::PathParameterJsonRequest( json_obj=Shared::SimpleObject( - any="mollitia", - bigint=68074, - bigint_str="corrupti", + any="et", + bigint=454162, + bigint_str="ipsa", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -768,20 +724,20 @@ s = sdk::SDK.new req = Operations::Operations::PipeDelimitedQueryParamsArrayRequest( query_params=Operations::PipeDelimitedQueryParamsArrayRequest( arr_param=[ - "occaecati", + "adipisci", ], arr_param_exploded=[ - 771089, - 131055, + 839513, + 33074, + 522371, ], map_param={ - "aut": "dignissimos", - "dicta": "maiores", + "laudantium": "eum", }, obj_param=Shared::SimpleObject( - any="natus", - bigint=244651, - bigint_str="voluptatibus", + any="mollitia", + bigint=68074, + bigint_str="corrupti", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -790,8 +746,8 @@ req = Operations::Operations::PipeDelimitedQueryParamsArrayRequest( float32=2.2222222, int=999999, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, - int_enum=Shared::SimpleObjectIntEnum::THIRD, + int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, + int_enum=Shared::SimpleObjectIntEnum::FIRST, int_opt_null=999999, num=1.1, num_opt_null=1.1, @@ -822,7 +778,7 @@ s = sdk::SDK.new req = Operations::Operations::SimplePathParameterArraysRequest( path_params=Operations::SimplePathParameterArraysRequest( arr_param=[ - "ea", + "occaecati", ], ), ) @@ -848,12 +804,12 @@ s = sdk::SDK.new req = Operations::Operations::SimplePathParameterMapsRequest( path_params=Operations::SimplePathParameterMapsRequest( map_param={ - "consequuntur": "repellendus", - "officia": "maxime", + "impedit": "explicabo", + "voluptas": "aut", }, map_param_exploded={ - "officia": 989410, - "nemo": 65304, + "dicta": 981640, + "natus": 244651, }, ), ) @@ -879,9 +835,9 @@ s = sdk::SDK.new req = Operations::Operations::SimplePathParameterObjectsRequest( path_params=Operations::SimplePathParameterObjectsRequest( obj_param=Shared::SimpleObject( - any="quaerat", - bigint=783235, - bigint_str="quod", + any="voluptatibus", + bigint=374323, + bigint_str="asperiores", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -891,7 +847,7 @@ req = Operations::Operations::SimplePathParameterObjectsRequest( int=999999, int32=1, int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, - int_enum=Shared::SimpleObjectIntEnum::FIRST, + int_enum=Shared::SimpleObjectIntEnum::SECOND, int_opt_null=999999, num=1.1, num_opt_null=1.1, @@ -899,9 +855,9 @@ req = Operations::Operations::SimplePathParameterObjectsRequest( str_opt="optional example", ), obj_param_exploded=Shared::SimpleObject( - any="adipisci", - bigint=683573, - bigint_str="id", + any="quaerat", + bigint=162954, + bigint_str="repellendus", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -911,7 +867,7 @@ req = Operations::Operations::SimplePathParameterObjectsRequest( int=999999, int32=1, int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, - int_enum=Shared::SimpleObjectIntEnum::FIRST, + int_enum=Shared::SimpleObjectIntEnum::THIRD, int_opt_null=999999, num=1.1, num_opt_null=1.1, @@ -942,9 +898,9 @@ s = sdk::SDK.new req = Operations::Operations::SimplePathParameterPrimitivesRequest( path_params=Operations::SimplePathParameterPrimitivesRequest( bool_param=false, - int_param=633931, - num_param=6658.59, - str_param="recusandae", + int_param=490305, + num_param=6400.24, + str_param="asperiores", ), ) diff --git a/ruby-client-sdk/docs/requestbodies/README.md b/ruby-client-sdk/docs/requestbodies/README.md index 63f2e2067..e0425c702 100755 --- a/ruby-client-sdk/docs/requestbodies/README.md +++ b/ruby-client-sdk/docs/requestbodies/README.md @@ -52,29 +52,9 @@ s = sdk::SDK.new req = Operations::::( request=[ Shared::SimpleObject( - any="fugiat", - bigint=424089, - bigint_str="ducimus", - bool=true, - bool_opt=true, - date=Date.parse("2020-01-01"), - date_time=DateTime.iso8601('2020-01-01T00:00:00Z'), - enum=Shared::Enum::TWO, - float32=2.2222222, - int=999999, - int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, - int_enum=Shared::SimpleObjectIntEnum::SECOND, - int_opt_null=999999, - num=1.1, - num_opt_null=1.1, - str_="example", - str_opt="optional example", - ), - Shared::SimpleObject( - any="labore", - bigint=822560, - bigint_str="facilis", + any="quae", + bigint=312753, + bigint_str="porro", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -84,7 +64,7 @@ req = Operations::::( int=999999, int32=1, int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, - int_enum=Shared::SimpleObjectIntEnum::SECOND, + int_enum=Shared::SimpleObjectIntEnum::FIRST, int_opt_null=999999, num=1.1, num_opt_null=1.1, @@ -92,9 +72,9 @@ req = Operations::::( str_opt="optional example", ), Shared::SimpleObject( - any="in", - bigint=360545, - bigint_str="reiciendis", + any="ab", + bigint=241418, + bigint_str="fuga", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -103,7 +83,7 @@ req = Operations::::( float32=2.2222222, int=999999, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, + int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, int_enum=Shared::SimpleObjectIntEnum::SECOND, int_opt_null=999999, num=1.1, @@ -135,49 +115,9 @@ s = sdk::SDK.new req = Operations::::( request=[ Shared::SimpleObject( - any="aliquid", - bigint=46007, - bigint_str="cum", - bool=true, - bool_opt=true, - date=Date.parse("2020-01-01"), - date_time=DateTime.iso8601('2020-01-01T00:00:00Z'), - enum=Shared::Enum::TWO, - float32=2.2222222, - int=999999, - int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, - int_enum=Shared::SimpleObjectIntEnum::SECOND, - int_opt_null=999999, - num=1.1, - num_opt_null=1.1, - str_="example", - str_opt="optional example", - ), - Shared::SimpleObject( - any="exercitationem", - bigint=937285, - bigint_str="facere", - bool=true, - bool_opt=true, - date=Date.parse("2020-01-01"), - date_time=DateTime.iso8601('2020-01-01T00:00:00Z'), - enum=Shared::Enum::TWO, - float32=2.2222222, - int=999999, - int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, - int_enum=Shared::SimpleObjectIntEnum::THIRD, - int_opt_null=999999, - num=1.1, - num_opt_null=1.1, - str_="example", - str_opt="optional example", - ), - Shared::SimpleObject( - any="suscipit", - bigint=968972, - bigint_str="quidem", + any="culpa", + bigint=665859, + bigint_str="recusandae", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -186,7 +126,7 @@ req = Operations::::( float32=2.2222222, int=999999, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, + int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, int_enum=Shared::SimpleObjectIntEnum::THIRD, int_opt_null=999999, num=1.1, @@ -194,26 +134,6 @@ req = Operations::::( str_="example", str_opt="optional example", ), - Shared::SimpleObject( - any="dolore", - bigint=121059, - bigint_str="asperiores", - bool=true, - bool_opt=true, - date=Date.parse("2020-01-01"), - date_time=DateTime.iso8601('2020-01-01T00:00:00Z'), - enum=Shared::Enum::TWO, - float32=2.2222222, - int=999999, - int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, - int_enum=Shared::SimpleObjectIntEnum::FIRST, - int_opt_null=999999, - num=1.1, - num_opt_null=1.1, - str_="example", - str_opt="optional example", - ), ], ) @@ -239,9 +159,51 @@ req = Operations::::( request=[ [ Shared::SimpleObject( - any="dignissimos", - bigint=950953, - bigint_str="debitis", + any="quos", + bigint=427834, + bigint_str="labore", + bool=true, + bool_opt=true, + date=Date.parse("2020-01-01"), + date_time=DateTime.iso8601('2020-01-01T00:00:00Z'), + enum=Shared::Enum::TWO, + float32=2.2222222, + int=999999, + int32=1, + int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, + int_enum=Shared::SimpleObjectIntEnum::THIRD, + int_opt_null=999999, + num=1.1, + num_opt_null=1.1, + str_="example", + str_opt="optional example", + ), + Shared::SimpleObject( + any="cum", + bigint=414857, + bigint_str="in", + bool=true, + bool_opt=true, + date=Date.parse("2020-01-01"), + date_time=DateTime.iso8601('2020-01-01T00:00:00Z'), + enum=Shared::Enum::TWO, + float32=2.2222222, + int=999999, + int32=1, + int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, + int_enum=Shared::SimpleObjectIntEnum::THIRD, + int_opt_null=999999, + num=1.1, + num_opt_null=1.1, + str_="example", + str_opt="optional example", + ), + ], + [ + Shared::SimpleObject( + any="nemo", + bigint=924967, + bigint_str="aliquid", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -251,7 +213,67 @@ req = Operations::::( int=999999, int32=1, int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, - int_enum=Shared::SimpleObjectIntEnum::SECOND, + int_enum=Shared::SimpleObjectIntEnum::THIRD, + int_opt_null=999999, + num=1.1, + num_opt_null=1.1, + str_="example", + str_opt="optional example", + ), + Shared::SimpleObject( + any="consectetur", + bigint=449083, + bigint_str="exercitationem", + bool=true, + bool_opt=true, + date=Date.parse("2020-01-01"), + date_time=DateTime.iso8601('2020-01-01T00:00:00Z'), + enum=Shared::Enum::TWO, + float32=2.2222222, + int=999999, + int32=1, + int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, + int_enum=Shared::SimpleObjectIntEnum::THIRD, + int_opt_null=999999, + num=1.1, + num_opt_null=1.1, + str_="example", + str_opt="optional example", + ), + Shared::SimpleObject( + any="numquam", + bigint=985492, + bigint_str="suscipit", + bool=true, + bool_opt=true, + date=Date.parse("2020-01-01"), + date_time=DateTime.iso8601('2020-01-01T00:00:00Z'), + enum=Shared::Enum::TWO, + float32=2.2222222, + int=999999, + int32=1, + int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, + int_enum=Shared::SimpleObjectIntEnum::THIRD, + int_opt_null=999999, + num=1.1, + num_opt_null=1.1, + str_="example", + str_opt="optional example", + ), + Shared::SimpleObject( + any="saepe", + bigint=897071, + bigint_str="dolore", + bool=true, + bool_opt=true, + date=Date.parse("2020-01-01"), + date_time=DateTime.iso8601('2020-01-01T00:00:00Z'), + enum=Shared::Enum::TWO, + float32=2.2222222, + int=999999, + int32=1, + int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, + int_enum=Shared::SimpleObjectIntEnum::THIRD, int_opt_null=999999, num=1.1, num_opt_null=1.1, @@ -283,17 +305,7 @@ s = sdk::SDK.new req = Operations::::( request=[ [ - "ipsa", - "voluptates", - ], - [ - "vitae", - "accusamus", - "similique", - ], - [ - "aspernatur", - "voluptas", + "amet", ], ], ) @@ -319,30 +331,10 @@ s = sdk::SDK.new req = Operations::::( request=[ { - "minima": Shared::SimpleObject( - any="nobis", - bigint=680116, - bigint_str="adipisci", - bool=true, - bool_opt=true, - date=Date.parse("2020-01-01"), - date_time=DateTime.iso8601('2020-01-01T00:00:00Z'), - enum=Shared::Enum::TWO, - float32=2.2222222, - int=999999, - int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, - int_enum=Shared::SimpleObjectIntEnum::FIRST, - int_opt_null=999999, - num=1.1, - num_opt_null=1.1, - str_="example", - str_opt="optional example", - ), - "blanditiis": Shared::SimpleObject( - any="in", - bigint=296242, - bigint_str="aliquam", + "a": Shared::SimpleObject( + any="debitis", + bigint=233420, + bigint_str="corporis", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -352,39 +344,17 @@ req = Operations::::( int=999999, int32=1, int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, - int_enum=Shared::SimpleObjectIntEnum::THIRD, - int_opt_null=999999, - num=1.1, - num_opt_null=1.1, - str_="example", - str_opt="optional example", - ), - }, - { - "adipisci": Shared::SimpleObject( - any="cum", - bigint=502389, - bigint_str="quas", - bool=true, - bool_opt=true, - date=Date.parse("2020-01-01"), - date_time=DateTime.iso8601('2020-01-01T00:00:00Z'), - enum=Shared::Enum::TWO, - float32=2.2222222, - int=999999, - int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, - int_enum=Shared::SimpleObjectIntEnum::FIRST, + int_enum=Shared::SimpleObjectIntEnum::SECOND, int_opt_null=999999, num=1.1, num_opt_null=1.1, str_="example", str_opt="optional example", ), - "culpa": Shared::SimpleObject( - any="corrupti", - bigint=867290, - bigint_str="totam", + "ipsa": Shared::SimpleObject( + any="voluptates", + bigint=730709, + bigint_str="vitae", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -425,10 +395,8 @@ s = sdk::SDK.new req = Operations::::( request=[ - "sit", - "rerum", - "sed", - "reiciendis", + "aspernatur", + "voluptas", ], ) @@ -453,9 +421,9 @@ s = sdk::SDK.new req = Operations::Shared::DeepObject( request=Shared::DeepObject( any=Shared::SimpleObject( - any="asperiores", - bigint=707918, - bigint_str="voluptate", + any="voluptas", + bigint=324405, + bigint_str="nobis", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -474,29 +442,9 @@ req = Operations::Shared::DeepObject( ), arr=[ Shared::SimpleObject( - any="dolore", - bigint=671907, - bigint_str="sed", - bool=true, - bool_opt=true, - date=Date.parse("2020-01-01"), - date_time=DateTime.iso8601('2020-01-01T00:00:00Z'), - enum=Shared::Enum::TWO, - float32=2.2222222, - int=999999, - int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, - int_enum=Shared::SimpleObjectIntEnum::SECOND, - int_opt_null=999999, - num=1.1, - num_opt_null=1.1, - str_="example", - str_opt="optional example", - ), - Shared::SimpleObject( - any="quidem", - bigint=131289, - bigint_str="voluptas", + any="dolores", + bigint=503934, + bigint_str="in", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -505,7 +453,7 @@ req = Operations::Shared::DeepObject( float32=2.2222222, int=999999, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, + int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, int_enum=Shared::SimpleObjectIntEnum::FIRST, int_opt_null=999999, num=1.1, @@ -514,9 +462,9 @@ req = Operations::Shared::DeepObject( str_opt="optional example", ), Shared::SimpleObject( - any="suscipit", - bigint=960257, - bigint_str="debitis", + any="officiis", + bigint=839189, + bigint_str="ullam", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -533,14 +481,10 @@ req = Operations::Shared::DeepObject( str_="example", str_opt="optional example", ), - ], - bool=false, - int=19300, - map={ - "maiores": Shared::SimpleObject( - any="incidunt", - bigint=148478, - bigint_str="provident", + Shared::SimpleObject( + any="blanditiis", + bigint=555361, + bigint_str="hic", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -550,17 +494,17 @@ req = Operations::Shared::DeepObject( int=999999, int32=1, int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, - int_enum=Shared::SimpleObjectIntEnum::THIRD, + int_enum=Shared::SimpleObjectIntEnum::SECOND, int_opt_null=999999, num=1.1, num_opt_null=1.1, str_="example", str_opt="optional example", ), - "ipsum": Shared::SimpleObject( - any="ea", - bigint=579912, - bigint_str="quos", + Shared::SimpleObject( + any="corrupti", + bigint=867290, + bigint_str="totam", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -570,17 +514,21 @@ req = Operations::Shared::DeepObject( int=999999, int32=1, int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, - int_enum=Shared::SimpleObjectIntEnum::FIRST, + int_enum=Shared::SimpleObjectIntEnum::SECOND, int_opt_null=999999, num=1.1, num_opt_null=1.1, str_="example", str_opt="optional example", ), - "tempora": Shared::SimpleObject( - any="voluptate", - bigint=970076, - bigint_str="ex", + ], + bool=false, + int=750765, + map={ + "rerum": Shared::SimpleObject( + any="sed", + bigint=967966, + bigint_str="explicabo", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -589,8 +537,8 @@ req = Operations::Shared::DeepObject( float32=2.2222222, int=999999, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, - int_enum=Shared::SimpleObjectIntEnum::FIRST, + int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, + int_enum=Shared::SimpleObjectIntEnum::THIRD, int_opt_null=999999, num=1.1, num_opt_null=1.1, @@ -598,11 +546,11 @@ req = Operations::Shared::DeepObject( str_opt="optional example", ), }, - num=8880.44, + num=4518.22, obj=Shared::SimpleObject( - any="praesentium", - bigint=708609, - bigint_str="quaerat", + any="expedita", + bigint=70869, + bigint_str="iste", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -612,15 +560,15 @@ req = Operations::Shared::DeepObject( int=999999, int32=1, int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, - int_enum=Shared::SimpleObjectIntEnum::SECOND, + int_enum=Shared::SimpleObjectIntEnum::THIRD, int_opt_null=999999, num=1.1, num_opt_null=1.1, str_="example", str_opt="optional example", ), - str_="debitis", - type="rem", + str_="sed", + type="in", ), ) @@ -644,10 +592,10 @@ s = sdk::SDK.new req = Operations::::( request={ - "nobis": Shared::SimpleObject( - any="error", - bigint=333507, - bigint_str="minima", + "quidem": Shared::SimpleObject( + any="explicabo", + bigint=378326, + bigint_str="unde", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -656,8 +604,28 @@ req = Operations::::( float32=2.2222222, int=999999, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, - int_enum=Shared::SimpleObjectIntEnum::THIRD, + int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, + int_enum=Shared::SimpleObjectIntEnum::SECOND, + int_opt_null=999999, + num=1.1, + num_opt_null=1.1, + str_="example", + str_opt="optional example", + ), + "sapiente": Shared::SimpleObject( + any="debitis", + bigint=72434, + bigint_str="reiciendis", + bool=true, + bool_opt=true, + date=Date.parse("2020-01-01"), + date_time=DateTime.iso8601('2020-01-01T00:00:00Z'), + enum=Shared::Enum::TWO, + float32=2.2222222, + int=999999, + int32=1, + int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, + int_enum=Shared::SimpleObjectIntEnum::SECOND, int_opt_null=999999, num=1.1, num_opt_null=1.1, @@ -687,10 +655,10 @@ s = sdk::SDK.new req = Operations::::( request={ - "magni": Shared::SimpleObject( - any="aperiam", - bigint=901483, - bigint_str="numquam", + "incidunt": Shared::SimpleObject( + any="sed", + bigint=592231, + bigint_str="eius", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -699,18 +667,18 @@ req = Operations::::( float32=2.2222222, int=999999, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, - int_enum=Shared::SimpleObjectIntEnum::SECOND, + int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, + int_enum=Shared::SimpleObjectIntEnum::FIRST, int_opt_null=999999, num=1.1, num_opt_null=1.1, str_="example", str_opt="optional example", ), - "officiis": Shared::SimpleObject( - any="beatae", - bigint=512452, - bigint_str="exercitationem", + "ea": Shared::SimpleObject( + any="occaecati", + bigint=552078, + bigint_str="voluptatibus", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -719,18 +687,18 @@ req = Operations::::( float32=2.2222222, int=999999, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, - int_enum=Shared::SimpleObjectIntEnum::THIRD, + int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, + int_enum=Shared::SimpleObjectIntEnum::FIRST, int_opt_null=999999, num=1.1, num_opt_null=1.1, str_="example", str_opt="optional example", ), - "laboriosam": Shared::SimpleObject( - any="dolorum", - bigint=530089, - bigint_str="error", + "voluptate": Shared::SimpleObject( + any="reiciendis", + bigint=401713, + bigint_str="sit", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -739,7 +707,7 @@ req = Operations::::( float32=2.2222222, int=999999, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, + int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, int_enum=Shared::SimpleObjectIntEnum::THIRD, int_opt_null=999999, num=1.1, @@ -747,10 +715,10 @@ req = Operations::::( str_="example", str_opt="optional example", ), - "debitis": Shared::SimpleObject( - any="neque", - bigint=677115, - bigint_str="nostrum", + "praesentium": Shared::SimpleObject( + any="facilis", + bigint=310381, + bigint_str="incidunt", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -790,11 +758,31 @@ s = sdk::SDK.new req = Operations::::( request={ - "accusamus": [ + "sit": [ Shared::SimpleObject( - any="atque", - bigint=148268, - bigint_str="ut", + any="error", + bigint=333507, + bigint_str="minima", + bool=true, + bool_opt=true, + date=Date.parse("2020-01-01"), + date_time=DateTime.iso8601('2020-01-01T00:00:00Z'), + enum=Shared::Enum::TWO, + float32=2.2222222, + int=999999, + int32=1, + int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, + int_enum=Shared::SimpleObjectIntEnum::THIRD, + int_opt_null=999999, + num=1.1, + num_opt_null=1.1, + str_="example", + str_opt="optional example", + ), + Shared::SimpleObject( + any="nulla", + bigint=168576, + bigint_str="aperiam", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -812,9 +800,9 @@ req = Operations::::( str_opt="optional example", ), Shared::SimpleObject( - any="culpa", - bigint=710337, - bigint_str="magnam", + any="veniam", + bigint=446135, + bigint_str="officiis", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -831,12 +819,10 @@ req = Operations::::( str_="example", str_opt="optional example", ), - ], - "ipsam": [ Shared::SimpleObject( - any="voluptatum", - bigint=558065, - bigint_str="repudiandae", + any="exercitationem", + bigint=510629, + bigint_str="cum", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -846,7 +832,7 @@ req = Operations::::( int=999999, int32=1, int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, - int_enum=Shared::SimpleObjectIntEnum::FIRST, + int_enum=Shared::SimpleObjectIntEnum::THIRD, int_opt_null=999999, num=1.1, num_opt_null=1.1, @@ -854,11 +840,31 @@ req = Operations::::( str_opt="optional example", ), ], - "blanditiis": [ + "voluptatum": [ Shared::SimpleObject( - any="sed", - bigint=24313, - bigint_str="vel", + any="hic", + bigint=710529, + bigint_str="debitis", + bool=true, + bool_opt=true, + date=Date.parse("2020-01-01"), + date_time=DateTime.iso8601('2020-01-01T00:00:00Z'), + enum=Shared::Enum::TWO, + float32=2.2222222, + int=999999, + int32=1, + int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, + int_enum=Shared::SimpleObjectIntEnum::THIRD, + int_opt_null=999999, + num=1.1, + num_opt_null=1.1, + str_="example", + str_opt="optional example", + ), + Shared::SimpleObject( + any="nostrum", + bigint=639028, + bigint_str="dolorum", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -876,9 +882,51 @@ req = Operations::::( str_opt="optional example", ), Shared::SimpleObject( - any="error", - bigint=8511, - bigint_str="incidunt", + any="tempora", + bigint=543678, + bigint_str="fugit", + bool=true, + bool_opt=true, + date=Date.parse("2020-01-01"), + date_time=DateTime.iso8601('2020-01-01T00:00:00Z'), + enum=Shared::Enum::TWO, + float32=2.2222222, + int=999999, + int32=1, + int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, + int_enum=Shared::SimpleObjectIntEnum::THIRD, + int_opt_null=999999, + num=1.1, + num_opt_null=1.1, + str_="example", + str_opt="optional example", + ), + ], + "voluptatem": [ + Shared::SimpleObject( + any="expedita", + bigint=299643, + bigint_str="consequatur", + bool=true, + bool_opt=true, + date=Date.parse("2020-01-01"), + date_time=DateTime.iso8601('2020-01-01T00:00:00Z'), + enum=Shared::Enum::TWO, + float32=2.2222222, + int=999999, + int32=1, + int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, + int_enum=Shared::SimpleObjectIntEnum::SECOND, + int_opt_null=999999, + num=1.1, + num_opt_null=1.1, + str_="example", + str_opt="optional example", + ), + Shared::SimpleObject( + any="sit", + bigint=530537, + bigint_str="quas", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -888,6 +936,26 @@ req = Operations::::( int=999999, int32=1, int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, + int_enum=Shared::SimpleObjectIntEnum::SECOND, + int_opt_null=999999, + num=1.1, + num_opt_null=1.1, + str_="example", + str_opt="optional example", + ), + Shared::SimpleObject( + any="et", + bigint=502710, + bigint_str="ex", + bool=true, + bool_opt=true, + date=Date.parse("2020-01-01"), + date_time=DateTime.iso8601('2020-01-01T00:00:00Z'), + enum=Shared::Enum::TWO, + float32=2.2222222, + int=999999, + int32=1, + int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, int_enum=Shared::SimpleObjectIntEnum::FIRST, int_opt_null=999999, num=1.1, @@ -919,11 +987,31 @@ s = sdk::SDK.new req = Operations::::( request={ - "dicta": { - "occaecati": Shared::SimpleObject( - any="labore", - bigint=695270, - bigint_str="atque", + "nostrum": { + "error": Shared::SimpleObject( + any="consequatur", + bigint=279068, + bigint_str="reiciendis", + bool=true, + bool_opt=true, + date=Date.parse("2020-01-01"), + date_time=DateTime.iso8601('2020-01-01T00:00:00Z'), + enum=Shared::Enum::TWO, + float32=2.2222222, + int=999999, + int32=1, + int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, + int_enum=Shared::SimpleObjectIntEnum::THIRD, + int_opt_null=999999, + num=1.1, + num_opt_null=1.1, + str_="example", + str_opt="optional example", + ), + "dicta": Shared::SimpleObject( + any="architecto", + bigint=577140, + bigint_str="labore", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -933,6 +1021,46 @@ req = Operations::::( int=999999, int32=1, int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, + int_enum=Shared::SimpleObjectIntEnum::SECOND, + int_opt_null=999999, + num=1.1, + num_opt_null=1.1, + str_="example", + str_opt="optional example", + ), + "laborum": Shared::SimpleObject( + any="nam", + bigint=948861, + bigint_str="laboriosam", + bool=true, + bool_opt=true, + date=Date.parse("2020-01-01"), + date_time=DateTime.iso8601('2020-01-01T00:00:00Z'), + enum=Shared::Enum::TWO, + float32=2.2222222, + int=999999, + int32=1, + int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, + int_enum=Shared::SimpleObjectIntEnum::FIRST, + int_opt_null=999999, + num=1.1, + num_opt_null=1.1, + str_="example", + str_opt="optional example", + ), + "deserunt": Shared::SimpleObject( + any="voluptate", + bigint=600392, + bigint_str="reiciendis", + bool=true, + bool_opt=true, + date=Date.parse("2020-01-01"), + date_time=DateTime.iso8601('2020-01-01T00:00:00Z'), + enum=Shared::Enum::TWO, + float32=2.2222222, + int=999999, + int32=1, + int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, int_enum=Shared::SimpleObjectIntEnum::THIRD, int_opt_null=999999, num=1.1, @@ -941,11 +1069,11 @@ req = Operations::::( str_opt="optional example", ), }, - "tenetur": { - "alias": Shared::SimpleObject( - any="amet", - bigint=647197, - bigint_str="voluptate", + "delectus": { + "perferendis": Shared::SimpleObject( + any="est", + bigint=696483, + bigint_str="reprehenderit", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -954,7 +1082,7 @@ req = Operations::::( float32=2.2222222, int=999999, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, + int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, int_enum=Shared::SimpleObjectIntEnum::THIRD, int_opt_null=999999, num=1.1, @@ -962,10 +1090,10 @@ req = Operations::::( str_="example", str_opt="optional example", ), - "provident": Shared::SimpleObject( - any="repellendus", - bigint=962771, - bigint_str="voluptates", + "praesentium": Shared::SimpleObject( + any="mollitia", + bigint=333965, + bigint_str="voluptatem", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -974,7 +1102,7 @@ req = Operations::::( float32=2.2222222, int=999999, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, + int32_enum=Shared::SimpleObjectInt32Enum::ONE_HUNDRED_AND_EIGHTY_ONE, int_enum=Shared::SimpleObjectIntEnum::THIRD, int_opt_null=999999, num=1.1, @@ -982,12 +1110,10 @@ req = Operations::::( str_="example", str_opt="optional example", ), - }, - "quidem": { - "facere": Shared::SimpleObject( - any="fuga", - bigint=509807, - bigint_str="mollitia", + "quasi": Shared::SimpleObject( + any="atque", + bigint=442036, + bigint_str="asperiores", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -997,17 +1123,17 @@ req = Operations::::( int=999999, int32=1, int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, - int_enum=Shared::SimpleObjectIntEnum::FIRST, + int_enum=Shared::SimpleObjectIntEnum::SECOND, int_opt_null=999999, num=1.1, num_opt_null=1.1, str_="example", str_opt="optional example", ), - "quisquam": Shared::SimpleObject( - any="repudiandae", - bigint=97243, - bigint_str="atque", + "quidem": Shared::SimpleObject( + any="maxime", + bigint=90885, + bigint_str="esse", bool=true, bool_opt=true, date=Date.parse("2020-01-01"), @@ -1016,7 +1142,7 @@ req = Operations::::( float32=2.2222222, int=999999, int32=1, - int32_enum=Shared::SimpleObjectInt32Enum::SIXTY_NINE, + int32_enum=Shared::SimpleObjectInt32Enum::FIFTY_FIVE, int_enum=Shared::SimpleObjectIntEnum::THIRD, int_opt_null=999999, num=1.1, @@ -1048,11 +1174,6 @@ s = sdk::SDK.new req = Operations::::( request={ - "suscipit": { - "maxime": "et", - "esse": "amet", - "assumenda": "ea", - }, "atque": { "officiis": "officiis", "accusamus": "natus", diff --git a/ruby-client-sdk/gen.yaml b/ruby-client-sdk/gen.yaml index 899603837..0cc702a20 100755 --- a/ruby-client-sdk/gen.yaml +++ b/ruby-client-sdk/gen.yaml @@ -1,14 +1,14 @@ configVersion: 1.0.0 management: - docChecksum: 948d86c8c8659783f15ecb6484ae3368 + docChecksum: 76623f721a416be989cb70240cd8b7e1 docVersion: 0.0.1 - speakeasyVersion: 1.35.0 + speakeasyVersion: 1.36.3 generationVersion: 2.31.0 generation: sdkClassName: SDK singleTagPerOp: false ruby: - version: 1.2.0 + version: 1.2.1 author: Speakeasy description: Ruby Client SDK Generated by Speakeasy maxMethodParams: 5 diff --git a/ruby-client-sdk/lib/sdk/generation.rb b/ruby-client-sdk/lib/sdk/generation.rb index 7e79fcba3..86d06c00e 100755 --- a/ruby-client-sdk/lib/sdk/generation.rb +++ b/ruby-client-sdk/lib/sdk/generation.rb @@ -110,13 +110,14 @@ def deprecated_no_comments_get(deprecated_parameter = nil) res end - sig { params(deprecated_parameter: T.nilable(String)).returns(Utils::FieldAugmented) } - def deprecated_with_comments_get(deprecated_parameter = nil) + sig { params(deprecated_parameter: T.nilable(String), new_parameter: T.nilable(String)).returns(Utils::FieldAugmented) } + def deprecated_with_comments_get(deprecated_parameter = nil, new_parameter = nil) # deprecated_with_comments_get - This is an endpoint setup to test deprecation with comments # # @deprecated this null will be removed in a future release, please migrate away from it as soon as possible request = Operations::DeprecatedWithCommentsGetRequest.new( deprecated_parameter: deprecated_parameter, + new_parameter: new_parameter, ) base_url = @server_url diff --git a/ruby-client-sdk/lib/sdk/models/operations/deprecatedwithcommentsget.rb b/ruby-client-sdk/lib/sdk/models/operations/deprecatedwithcommentsget.rb index c4f945d8c..64ce1d1bd 100755 --- a/ruby-client-sdk/lib/sdk/models/operations/deprecatedwithcommentsget.rb +++ b/ruby-client-sdk/lib/sdk/models/operations/deprecatedwithcommentsget.rb @@ -16,11 +16,14 @@ class DeprecatedWithCommentsGetRequest < OpenApiSDK::Utils::FieldAugmented # # @deprecated this true will be removed in a future release, please migrate away from it as soon as possible field :deprecated_parameter, T.nilable(String), { 'query_param': { 'field_name': 'deprecatedParameter', 'style': 'form', 'explode': true } } + # This is a string parameter + field :new_parameter, T.nilable(String), { 'query_param': { 'field_name': 'newParameter', 'style': 'form', 'explode': true } } - sig { params(deprecated_parameter: T.nilable(String)).void } - def initialize(deprecated_parameter: nil) + sig { params(deprecated_parameter: T.nilable(String), new_parameter: T.nilable(String)).void } + def initialize(deprecated_parameter: nil, new_parameter: nil) @deprecated_parameter = deprecated_parameter + @new_parameter = new_parameter end end diff --git a/ruby-client-sdk/lib/sdk/sdk.rb b/ruby-client-sdk/lib/sdk/sdk.rb index 59134ec6e..d2d5040d4 100755 --- a/ruby-client-sdk/lib/sdk/sdk.rb +++ b/ruby-client-sdk/lib/sdk/sdk.rb @@ -71,7 +71,7 @@ def initialize(security: nil, @security = nil @server_url = SERVERS[0] @language = 'ruby' - @sdk_version = '1.2.0' + @sdk_version = '1.2.1' @gen_version = '2.31.0' init_sdks end diff --git a/ruby-client-sdk/openapi.gemspec b/ruby-client-sdk/openapi.gemspec index d89dac922..30d00629e 100755 --- a/ruby-client-sdk/openapi.gemspec +++ b/ruby-client-sdk/openapi.gemspec @@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__) Gem::Specification.new do |s| s.name = 'openapi' - s.version = '1.2.0' + s.version = '1.2.1' s.platform = Gem::Platform::RUBY s.licenses = ['Apache-2.0'] s.summary = '' diff --git a/ruby-client-sdk/test/telemetry_test.rb b/ruby-client-sdk/test/telemetry_test.rb index 6dac16886..9776b7ccd 100755 --- a/ruby-client-sdk/test/telemetry_test.rb +++ b/ruby-client-sdk/test/telemetry_test.rb @@ -15,7 +15,7 @@ def test_telemetry_user_agent_get refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) - assert_equal('speakeasy-sdk/ruby 1.2.0 2.31.0', res.res.headers['X-Speakeasy-User-Agent']) + assert_equal('speakeasy-sdk/ruby 1.2.1 2.31.0', res.res.headers['X-Speakeasy-User-Agent']) end @@ -29,7 +29,7 @@ def test_telemetry_speakeasy_user_agent_get refute_nil(res) assert_equal(Rack::Utils.status_code(:ok), res.status_code) assert_equal(user_agent, res.res.headers['User-Agent']) - assert_equal('speakeasy-sdk/ruby 1.2.0 2.31.0', res.res.headers['X-Speakeasy-User-Agent']) + assert_equal('speakeasy-sdk/ruby 1.2.1 2.31.0', res.res.headers['X-Speakeasy-User-Agent']) end end diff --git a/typescript-client-sdk/__tests__/telemetry.test.ts b/typescript-client-sdk/__tests__/telemetry.test.ts index 89aadd05e..e0449ca81 100755 --- a/typescript-client-sdk/__tests__/telemetry.test.ts +++ b/typescript-client-sdk/__tests__/telemetry.test.ts @@ -22,7 +22,7 @@ test("Test Telemetry User Agent Get", async () => { expect(res.statusCode).toBeDefined(); expect(res.statusCode).toBe(200); expect(res.res?.headers["X-Speakeasy-User-Agent"]).toBe( - "speakeasy-sdk/typescript 1.2.0 2.31.0" + "speakeasy-sdk/typescript 1.2.1 2.31.0" ); }); @@ -40,6 +40,6 @@ test("Test Telemetry Speakeasy User Agent Get", async () => { expect(res.statusCode).toBe(200); expect(res.res?.headers["User-Agent"]).toBe(userAgent); expect(res.res?.headers["X-Speakeasy-User-Agent"]).toBe( - "speakeasy-sdk/typescript 1.2.0 2.31.0" + "speakeasy-sdk/typescript 1.2.1 2.31.0" ); }); diff --git a/typescript-client-sdk/docs/generation/README.md b/typescript-client-sdk/docs/generation/README.md index 58e41847f..00ab2448c 100755 --- a/typescript-client-sdk/docs/generation/README.md +++ b/typescript-client-sdk/docs/generation/README.md @@ -109,7 +109,7 @@ const sdk = new SDK({ globalQueryParam: "some example global query param", }); -sdk.generation.deprecatedWithCommentsGet("aspernatur").then((res: DeprecatedWithCommentsGetResponse) => { +sdk.generation.deprecatedWithCommentsGet("aspernatur", "architecto").then((res: DeprecatedWithCommentsGetResponse) => { if (res.statusCode == 200) { // handle response } @@ -183,9 +183,9 @@ const sdk = new SDK({ }); sdk.generation.ignoresPost({ - callbackUrl: "http://foolhardy-bolero.name", - testProp: "ullam", -}, "provident").then((res: IgnoresPostResponse) => { + callbackUrl: "http://brisk-mobile.info", + testProp: "provident", +}, "quos").then((res: IgnoresPostResponse) => { if (res.statusCode == 200) { // handle response } @@ -243,17 +243,17 @@ const sdk = new SDK({ sdk.generation.usageExamplePost({ requestBody: { - email: "Kiley_Bartoletti@yahoo.com", - formatEmail: "Emmie89@yahoo.com", - formatUri: "http://handy-borrowing.info", - formatUuid: "fe4c8b71-1e5b-47fd-aed0-28921cddc692", - hostname: "illegal-antique.com", - ipv4: "251.178.95.116", - ipv6: "6b0d:5f0d:30c5:fbb2:5870:5320:2c73:d5fe", + email: "Alexis_OHara32@yahoo.com", + formatEmail: "Dallas36@yahoo.com", + formatUri: "http://infinite-winery.org", + formatUuid: "4c8b711e-5b7f-4d2e-9028-921cddc69260", + hostname: "big-willingness.net", + ipv4: "95.116.107.184", + ipv6: "0d5f:0d30:c5fb:b258:7053:202c:73d5:fe9b", simpleObject: { - any: "omnis", - bigint: 704415, - bigintStr: "perspiciatis", + any: "perspiciatis", + bigint: 31838, + bigintStr: "porro", bool: true, boolOpt: true, date: new RFCDate("2020-01-01"), @@ -263,16 +263,16 @@ sdk.generation.usageExamplePost({ int: 999999, int32: 1, int32Enum: SimpleObjectInt32Enum.FiftyFive, - intEnum: SimpleObjectIntEnum.Third, + intEnum: SimpleObjectIntEnum.Second, intOptNull: 999999, num: 1.1, numOptNull: 1.1, str: "example", strOpt: "optional example", }, - unknown: "consequuntur", - uri: "https://petty-atom.name", - uuid: "b3fe49a8-d9cb-4f48-a333-23f9b77f3a41", + unknown: "error", + uri: "http://noxious-pronunciation.biz", + uuid: "fe49a8d9-cbf4-4863-b323-f9b77f3a4100", }, boolParameter: false, dateParameter: new RFCDate("2020-01-01"), diff --git a/typescript-client-sdk/docs/globals/README.md b/typescript-client-sdk/docs/globals/README.md index f96db1c83..ca06c2ea0 100755 --- a/typescript-client-sdk/docs/globals/README.md +++ b/typescript-client-sdk/docs/globals/README.md @@ -25,7 +25,7 @@ const sdk = new SDK({ globalQueryParam: "some example global query param", }); -sdk.globals.globalPathParameterGet(58029).then((res: GlobalPathParameterGetResponse) => { +sdk.globals.globalPathParameterGet(434417).then((res: GlobalPathParameterGetResponse) => { if (res.statusCode == 200) { // handle response } @@ -48,7 +48,7 @@ const sdk = new SDK({ globalQueryParam: "some example global query param", }); -sdk.globals.globalsQueryParameterGet("ipsa").then((res: GlobalsQueryParameterGetResponse) => { +sdk.globals.globalsQueryParameterGet("odio").then((res: GlobalsQueryParameterGetResponse) => { if (res.statusCode == 200) { // handle response } diff --git a/typescript-client-sdk/docs/parameters/README.md b/typescript-client-sdk/docs/parameters/README.md index 0686bba5d..df71a3942 100755 --- a/typescript-client-sdk/docs/parameters/README.md +++ b/typescript-client-sdk/docs/parameters/README.md @@ -43,18 +43,16 @@ const sdk = new SDK({ }); sdk.parameters.deepObjectQueryParamsMap({ - "odio": "quaerat", "accusamus": "quidem", + "voluptatibus": "voluptas", }, { - "voluptas": [ - "eos", - "atque", + "eos": [ "sit", + "fugiat", + "ab", ], - "fugiat": [ - "soluta", - ], - "dolorum": [ + "soluta": [ + "iusto", "voluptate", "dolorum", ], diff --git a/typescript-client-sdk/gen.yaml b/typescript-client-sdk/gen.yaml index 82c82bf20..f4714b26b 100755 --- a/typescript-client-sdk/gen.yaml +++ b/typescript-client-sdk/gen.yaml @@ -1,14 +1,14 @@ configVersion: 1.0.0 management: - docChecksum: 948d86c8c8659783f15ecb6484ae3368 + docChecksum: 76623f721a416be989cb70240cd8b7e1 docVersion: 0.0.1 - speakeasyVersion: 1.35.0 + speakeasyVersion: 1.36.3 generationVersion: 2.31.0 generation: sdkClassName: SDK singleTagPerOp: false typescript: - version: 1.2.0 + version: 1.2.1 author: Speakeasy maxMethodParams: 5 packageName: openapi diff --git a/typescript-client-sdk/package-lock.json b/typescript-client-sdk/package-lock.json index 9bf5e5756..31fc1197b 100755 --- a/typescript-client-sdk/package-lock.json +++ b/typescript-client-sdk/package-lock.json @@ -1,12 +1,12 @@ { "name": "openapi", - "version": "1.2.0", + "version": "1.2.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "openapi", - "version": "1.2.0", + "version": "1.2.1", "dependencies": { "axios": "^1.1.3", "class-transformer": "^0.5.1", diff --git a/typescript-client-sdk/package.json b/typescript-client-sdk/package.json index 592abef4b..3227396ec 100755 --- a/typescript-client-sdk/package.json +++ b/typescript-client-sdk/package.json @@ -1,6 +1,6 @@ { "name": "openapi", - "version": "1.2.0", + "version": "1.2.1", "author": "Speakeasy", "scripts": { "prepare": "tsc --build", diff --git a/typescript-client-sdk/src/sdk/generation.ts b/typescript-client-sdk/src/sdk/generation.ts index cbf7e539a..b5bf29f27 100755 --- a/typescript-client-sdk/src/sdk/generation.ts +++ b/typescript-client-sdk/src/sdk/generation.ts @@ -192,10 +192,12 @@ export class Generation { */ async deprecatedWithCommentsGet( deprecatedParameter?: string, + newParameter?: string, config?: AxiosRequestConfig ): Promise { const req = new operations.DeprecatedWithCommentsGetRequest({ deprecatedParameter: deprecatedParameter, + newParameter: newParameter, }); const baseURL: string = this._serverURL; const url: string = diff --git a/typescript-client-sdk/src/sdk/models/operations/deprecatedwithcommentsget.ts b/typescript-client-sdk/src/sdk/models/operations/deprecatedwithcommentsget.ts index e6cdfeb60..17113fefe 100755 --- a/typescript-client-sdk/src/sdk/models/operations/deprecatedwithcommentsget.ts +++ b/typescript-client-sdk/src/sdk/models/operations/deprecatedwithcommentsget.ts @@ -15,6 +15,14 @@ export class DeprecatedWithCommentsGetRequest extends SpeakeasyBase { data: "queryParam, style=form;explode=true;name=deprecatedParameter", }) deprecatedParameter?: string; + + /** + * This is a string parameter + */ + @SpeakeasyMetadata({ + data: "queryParam, style=form;explode=true;name=newParameter", + }) + newParameter?: string; } export class DeprecatedWithCommentsGetResponse extends SpeakeasyBase { diff --git a/typescript-client-sdk/src/sdk/sdk.ts b/typescript-client-sdk/src/sdk/sdk.ts index 53c22569f..8718de5ca 100755 --- a/typescript-client-sdk/src/sdk/sdk.ts +++ b/typescript-client-sdk/src/sdk/sdk.ts @@ -127,7 +127,7 @@ export class SDK { public _securityClient: AxiosInstance; public _serverURL: string; private _language = "typescript"; - private _sdkVersion = "1.2.0"; + private _sdkVersion = "1.2.1"; private _genVersion = "2.31.0"; private _globals: any;