Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 0.1.0, Speakeay CLI 1.99.0
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Oct 13, 2023
1 parent 6211efc commit 3b27b6e
Show file tree
Hide file tree
Showing 505 changed files with 2,102 additions and 1,892 deletions.
15 changes: 14 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -865,4 +865,17 @@ Based on:
- [go v1.38.0] go-client-sdk
- [java v1.36.0] java-client-sdk
### Releases
- [Go v1.38.0] https://github.com/speakeasy-api/openapi-generation-tests/releases/tag/go-client-sdk/v1.38.0 - go-client-sdk
- [Go v1.38.0] https://github.com/speakeasy-api/openapi-generation-tests/releases/tag/go-client-sdk/v1.38.0 - go-client-sdk

## 2023-10-13 00:12:16
### Changes
Based on:
- OpenAPI Doc 0.1.0
- Speakeasy CLI 1.99.0 (2.154.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v1.39.1] typescript-client-sdk
- [go v1.38.1] go-client-sdk
- [java v1.37.0] java-client-sdk
- [python v1.38.1] python-client-sdk
### Releases
- [Go v1.38.1] https://github.com/speakeasy-api/openapi-generation-tests/releases/tag/go-client-sdk/v1.38.1 - go-client-sdk
1 change: 0 additions & 1 deletion go-client-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,6 @@ func main() {
}

```

<!-- End Global Parameters -->

<!-- Placeholder for Future Speakeasy SDK Sections -->
Expand Down
12 changes: 6 additions & 6 deletions go-client-sdk/docs/sdks/parameters/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ func main() {
}

mapArrParam := map[string][]string{
"test2": []string{
"test3",
"test4",
},
"test": []string{
"test",
"test2",
},
"test2": []string{
"test3",
"test4",
},
}

ctx := context.Background()
Expand Down Expand Up @@ -1511,13 +1511,13 @@ func main() {


mapParam := map[string]string{
"test": "value",
"test2": "value2",
"test": "value",
}

mapParamExploded := map[string]int64{
"test2": 2,
"test": 1,
"test2": 2,
}

ctx := context.Background()
Expand Down
8 changes: 4 additions & 4 deletions go-client-sdk/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ configVersion: 1.0.0
management:
docChecksum: d6c132f7bde6e79f0552a47119432f96
docVersion: 0.1.0
speakeasyVersion: 1.97.1
generationVersion: 2.152.1
speakeasyVersion: 1.99.0
generationVersion: 2.154.1
generation:
sdkClassName: SDK
singleTagPerOp: false
Expand All @@ -13,7 +13,7 @@ features:
constsAndDefaults: 0.1.1
core: 2.91.4
deprecations: 2.81.1
docs: 0.3.1
docs: 0.3.3
downloadStreams: 0.1.0
enums: 2.81.1
errors: 2.81.5
Expand All @@ -35,7 +35,7 @@ features:
tests: 0.0.0
unions: 2.83.1
go:
version: 1.38.0
version: 1.38.1
clientServerStatusCodesAsErrors: true
flattenGlobalSecurity: true
maxMethodParams: 5
Expand Down
6 changes: 3 additions & 3 deletions go-client-sdk/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,9 @@ func New(opts ...SDKOption) *SDK {
sdkConfiguration: sdkConfiguration{
Language: "go",
OpenAPIDocVersion: "0.1.0",
SDKVersion: "1.38.0",
GenVersion: "2.152.1",
UserAgent: "speakeasy-sdk/go 1.38.0 2.152.1 0.1.0 openapi",
SDKVersion: "1.38.1",
GenVersion: "2.154.1",
UserAgent: "speakeasy-sdk/go 1.38.1 2.154.1 0.1.0 openapi",
Globals: map[string]map[string]map[string]interface{}{
"parameters": {},
},
Expand Down
58 changes: 29 additions & 29 deletions go-client-sdk/tests/parameters_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ func TestParameters_FormQueryParamsMap(t *testing.T) {
)

mapParam := map[string]string{
"test": "value",
"test2": "value2",
"test": "value",
}

mapParamExploded := map[string]int64{
Expand All @@ -195,9 +195,9 @@ func TestParameters_FormQueryParamsMap(t *testing.T) {

assert.Equal(t, 200, res.StatusCode)
assert.Equal(t, map[string]string{
"test2": "2",
"mapParam": "test,value,test2,value2",
"test": "1",
"test2": "2",
}, sortSerializedMaps(res.Res.Args, `(.*)`, ","))
assert.Equal(t, "http://localhost:35123/anything/queryParams/form/map?mapParam=test%2Cvalue%2Ctest2%2Cvalue2&test=1&test2=2", sortSerializedMaps(res.Res.URL, `.*?\?mapParam=(.*?)&(.*)`, "%2C"))
}
Expand Down Expand Up @@ -388,8 +388,8 @@ func TestParameters_HeaderParamsMap(t *testing.T) {
}

xHeaderMapExplode := map[string]string{
"test1": "val1",
"test2": "val2",
"test1": "val1",
}

ctx := context.Background()
Expand Down Expand Up @@ -797,43 +797,43 @@ func TestParameters_MixedQueryParams(t *testing.T) {

assert.Equal(t, 200, res.StatusCode)
assert.Equal(t, map[string]string{
"deepObjectParam[intEnum]": "2",
"deepObjectParam[bigint]": "8821239038968084",
"deepObjectParam[dateTime]": "2020-01-01T00:00:00.000000001Z",
"deepObjectParam[int32]": "1",
"deepObjectParam[bool]": "true",
"deepObjectParam[int]": "1",
"strOpt": "testOptional",
"boolOpt": "true",
"dateTime": "2020-01-01T00:00:00.000000001Z",
"deepObjectParam[bigintStr]": "9223372036854775808",
"deepObjectParam[decimal]": "3.141592653589793",
"deepObjectParam[decimalStr]": "3.14159265358979344719667586",
"float32": "1.1",
"int32Enum": "55",
"jsonParam": "{\"any\":\"any\",\"bigint\":8821239038968084,\"bigintStr\":\"9223372036854775808\",\"bool\":true,\"boolOpt\":true,\"date\":\"2020-01-01\",\"dateTime\":\"2020-01-01T00:00:00.000000001Z\",\"decimal\":3.141592653589793,\"decimalStr\":\"3.14159265358979344719667586\",\"enum\":\"one\",\"float32\":1.1,\"int\":1,\"int32\":1,\"int32Enum\":55,\"intEnum\":2,\"num\":1.1,\"str\":\"test\",\"strOpt\":\"testOptional\"}",
"decimalStr": "3.14159265358979344719667586",
"bigintStr": "9223372036854775808",
"deepObjectParam[bool]": "true",
"deepObjectParam[float32]": "1.1",
"deepObjectParam[any]": "any",
"deepObjectParam[bigintStr]": "9223372036854775808",
"date": "2020-01-01",
"dateTime": "2020-01-01T00:00:00.000000001Z",
"deepObjectParam[strOpt]": "testOptional",
"deepObjectParam[str]": "test",
"deepObjectParam[any]": "any",
"deepObjectParam[boolOpt]": "true",
"deepObjectParam[intEnum]": "2",
"deepObjectParam[int32Enum]": "55",
"deepObjectParam[num]": "1.1",
"deepObjectParam[decimal]": "3.141592653589793",
"deepObjectParam[decimalStr]": "3.14159265358979344719667586",
"intEnum": "2",
"deepObjectParam[bigint]": "8821239038968084",
"deepObjectParam[date]": "2020-01-01",
"float32": "1.1",
"enum": "one",
"any": "any",
"date": "2020-01-01",
"deepObjectParam[dateTime]": "2020-01-01T00:00:00.000000001Z",
"int": "1",
"num": "1.1",
"str": "test",
"bigint": "8821239038968084",
"bool": "true",
"deepObjectParam[int32]": "1",
"enum": "one",
"decimalStr": "3.14159265358979344719667586",
"strOpt": "testOptional",
"deepObjectParam[boolOpt]": "true",
"int": "1",
"int32": "1",
"str": "test",
"deepObjectParam[num]": "1.1",
"intEnum": "2",
"num": "1.1",
"decimal": "3.141592653589793",
"boolOpt": "true",
"deepObjectParam[date]": "2020-01-01",
"deepObjectParam[int32Enum]": "55",
"deepObjectParam[enum]": "one",
"deepObjectParam[float32]": "1.1",
}, res.Res.Args)
assert.Equal(t, "http://localhost:35123/anything/queryParams/mixed?any=any&bigint=8821239038968084&bigintStr=9223372036854775808&bool=true&boolOpt=true&date=2020-01-01&dateTime=2020-01-01T00%3A00%3A00.000000001Z&decimal=3.141592653589793&decimalStr=3.14159265358979344719667586&deepObjectParam[any]=any&deepObjectParam[bigintStr]=9223372036854775808&deepObjectParam[bigint]=8821239038968084&deepObjectParam[boolOpt]=true&deepObjectParam[bool]=true&deepObjectParam[dateTime]=2020-01-01T00%3A00%3A00.000000001Z&deepObjectParam[date]=2020-01-01&deepObjectParam[decimalStr]=3.14159265358979344719667586&deepObjectParam[decimal]=3.141592653589793&deepObjectParam[enum]=one&deepObjectParam[float32]=1.1&deepObjectParam[int32Enum]=55&deepObjectParam[int32]=1&deepObjectParam[intEnum]=2&deepObjectParam[int]=1&deepObjectParam[num]=1.1&deepObjectParam[strOpt]=testOptional&deepObjectParam[str]=test&enum=one&float32=1.1&int=1&int32=1&int32Enum=55&intEnum=2&jsonParam={\"any\"%3A\"any\"%2C\"bigint\"%3A8821239038968084%2C\"bigintStr\"%3A\"9223372036854775808\"%2C\"bool\"%3Atrue%2C\"boolOpt\"%3Atrue%2C\"date\"%3A\"2020-01-01\"%2C\"dateTime\"%3A\"2020-01-01T00%3A00%3A00.000000001Z\"%2C\"decimal\"%3A3.141592653589793%2C\"decimalStr\"%3A\"3.14159265358979344719667586\"%2C\"enum\"%3A\"one\"%2C\"float32\"%3A1.1%2C\"int\"%3A1%2C\"int32\"%3A1%2C\"int32Enum\"%3A55%2C\"intEnum\"%3A2%2C\"num\"%3A1.1%2C\"str\"%3A\"test\"%2C\"strOpt\"%3A\"testOptional\"}&num=1.1&str=test&strOpt=testOptional", res.Res.URL)
}
Expand Down Expand Up @@ -897,8 +897,8 @@ func TestParameters_PipeDelimitedQueryParamsArray(t *testing.T) {
}

mapParam := map[string]string{
"key2": "val2",
"key1": "val1",
"key2": "val2",
}

objParam := &shared.SimpleObject{
Expand Down
4 changes: 2 additions & 2 deletions go-client-sdk/testsprimary/telemetry_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.38.0 2.152.1 0.1.0 openapi", res.Res.Headers["X-Speakeasy-User-Agent"])
assert.Equal(t, "speakeasy-sdk/go 1.38.1 2.154.1 0.1.0 openapi", res.Res.Headers["X-Speakeasy-User-Agent"])
}

func TestTelemetrySpeakeasyUserAgentGet(t *testing.T) {
Expand All @@ -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.38.0 2.152.1 0.1.0 openapi", res.Res.Headers["X-Speakeasy-User-Agent"])
assert.Equal(t, "speakeasy-sdk/go 1.38.1 2.154.1 0.1.0 openapi", res.Res.Headers["X-Speakeasy-User-Agent"])
}
3 changes: 1 addition & 2 deletions java-client-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
### Gradle

```groovy
implementation 'org.openapis.openapi:openapi:1.36.0'
implementation 'org.openapis.openapi:openapi:1.37.0'
```
<!-- End SDK Installation -->

Expand Down Expand Up @@ -516,7 +516,6 @@ public class Application {
}
}
```

<!-- End Global Parameters -->

<!-- Placeholder for Future Speakeasy SDK Sections -->
Expand Down
2 changes: 1 addition & 1 deletion java-client-sdk/docs/sdks/parameters/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ public class Application {
put("test", "value");
put("test2", "value2");
}}, new java.util.HashMap<String, Long>(){{
put("test2", 2L);
put("test", 1L);
put("test2", 2L);
}});

if (res.res != null) {
Expand Down
10 changes: 5 additions & 5 deletions java-client-sdk/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ configVersion: 1.0.0
management:
docChecksum: d6c132f7bde6e79f0552a47119432f96
docVersion: 0.1.0
speakeasyVersion: 1.97.1
generationVersion: 2.152.1
speakeasyVersion: 1.99.0
generationVersion: 2.154.1
generation:
sdkClassName: SDK
singleTagPerOp: false
features:
java:
core: 2.89.0
core: 2.90.0
deprecations: 2.81.1
docs: 0.0.0
docs: 0.0.2
enums: 2.81.1
examples: 2.81.2
flattening: 2.81.1
Expand All @@ -27,7 +27,7 @@ features:
nameOverrides: 2.81.1
serverIDs: 2.81.1
java:
version: 1.36.0
version: 1.37.0
artifactID: openapi
companyEmail: [email protected]
companyName: My Company
Expand Down
5 changes: 4 additions & 1 deletion java-client-sdk/lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ repositories {
}

java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
withSourcesJar()
withJavadocJar()
}
Expand All @@ -42,7 +44,7 @@ publishing {
maven(MavenPublication) {
groupId = 'org.openapis'
artifactId = 'openapi'
version = '1.36.0'
version = '1.37.0'

from components.java

Expand Down Expand Up @@ -114,3 +116,4 @@ tasks.named('test') {
testlogger {
showStandardStreams true
}

Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ class SDKConfiguration {
}};
public String language = "java";
public String openapiDocVersion = "0.1.0";
public String sdkVersion = "1.36.0";
public String genVersion = "2.152.1";
public String userAgent = "speakeasy-sdk/java 1.36.0 2.152.1 0.1.0 <no value>";
public String sdkVersion = "1.37.0";
public String genVersion = "2.154.1";
public String userAgent = "speakeasy-sdk/java 1.37.0 2.154.1 0.1.0 <no value>";
public Map<String, Map<String, Map<String, Object>>> globals = new HashMap<String, Map<String, Map<String, Object>>>(){{
put("parameters", new HashMap<String, Map<String, Object>>());
}};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void testTelemetryUserAgentGet() throws Exception {

assertNotNull(res);
assertEquals(200, res.statusCode);
assertEquals("speakeasy-sdk/java 1.36.0 2.152.1 0.1.0 <no value>", res.res.headers.get("X-Speakeasy-User-Agent"));
assertEquals("speakeasy-sdk/java 1.37.0 2.154.1 0.1.0 <no value>", res.res.headers.get("X-Speakeasy-User-Agent"));
}

@Test
Expand All @@ -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.36.0 2.152.1 0.1.0 <no value>", res.res.headers.get("X-Speakeasy-User-Agent"));
assertEquals("speakeasy-sdk/java 1.37.0 2.154.1 0.1.0 <no value>", res.res.headers.get("X-Speakeasy-User-Agent"));
}
}
4 changes: 3 additions & 1 deletion python-client-sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ res = s.generation.global_name_overridden()

if res.get_global_name_override_200_application_json_object is not None:
# handle response
pass
```


Expand Down Expand Up @@ -93,6 +94,7 @@ res = s.generation.usage_example_post(req, operations.UsageExamplePostSecurity(

if res.usage_example_post_200_application_json_object is not None:
# handle response
pass
```
<!-- End SDK Example Usage -->

Expand Down Expand Up @@ -456,8 +458,8 @@ res = s.globals.global_path_parameter_get(global_path_param=719830)

if res.res is not None:
# handle response
pass
```

<!-- End Global Parameters -->

<!-- Placeholder for Future Speakeasy SDK Sections -->
Expand Down
2 changes: 2 additions & 0 deletions python-client-sdk/USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ res = s.generation.global_name_overridden()

if res.get_global_name_override_200_application_json_object is not None:
# handle response
pass
```


Expand Down Expand Up @@ -84,5 +85,6 @@ res = s.generation.usage_example_post(req, operations.UsageExamplePostSecurity(

if res.usage_example_post_200_application_json_object is not None:
# handle response
pass
```
<!-- End SDK Example Usage -->
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation |
| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code for this operation |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |
Loading

0 comments on commit 3b27b6e

Please sign in to comment.