Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 0.1.0, Speakeay CLI 1.47.2
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed Jun 14, 2023
1 parent f259576 commit b2c0d2d
Show file tree
Hide file tree
Showing 51 changed files with 629 additions and 216 deletions.
10 changes: 9 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,4 +140,12 @@ Based on:
- OpenAPI Doc 0.1.0
- Speakeasy CLI 1.47.1 (2.39.2) https://github.com/speakeasy-api/speakeasy
### Releases
- [Go v1.8.0] https://github.com/speakeasy-api/openapi-generation-tests/releases/tag/go-client-sdk/v1.8.0 - go-client-sdk
- [Go v1.8.0] https://github.com/speakeasy-api/openapi-generation-tests/releases/tag/go-client-sdk/v1.8.0 - go-client-sdk

## 2023-06-14 00:12:14
### Changes
Based on:
- OpenAPI Doc 0.1.0
- Speakeasy CLI 1.47.2 (2.39.8) https://github.com/speakeasy-api/speakeasy
### Releases
- [Go v1.8.1] https://github.com/speakeasy-api/openapi-generation-tests/releases/tag/go-client-sdk/v1.8.1 - go-client-sdk
1 change: 1 addition & 0 deletions go-client-sdk/files.gen
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ tests/pagination_test.go
tests/parameter_test.go
tests/requestbodies_test.go
tests/responsebodies_test.go
tests/retries_test.go
tests/servers_test.go
tests/telemetry_test.go
tests/testdata/testUpload.json
Expand Down
6 changes: 3 additions & 3 deletions go-client-sdk/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ configVersion: 1.0.0
management:
docChecksum: d0eca6499a61add8ec83c5a828ab767e
docVersion: 0.1.0
speakeasyVersion: 1.47.1
generationVersion: 2.39.2
speakeasyVersion: 1.47.2
generationVersion: 2.39.8
generation:
sdkClassName: SDK
singleTagPerOp: false
go:
version: 1.8.0
version: 1.8.1
maxMethodParams: 5
packageName: openapi
4 changes: 2 additions & 2 deletions go-client-sdk/sdk.go

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

62 changes: 62 additions & 0 deletions go-client-sdk/tests/retries_test.go

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

4 changes: 2 additions & 2 deletions go-client-sdk/tests/telemetry_test.go

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

2 changes: 1 addition & 1 deletion 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.8.0'
implementation 'org.openapis.openapi:openapi:1.8.1'
```
<!-- End SDK Installation -->

Expand Down
6 changes: 3 additions & 3 deletions java-client-sdk/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ configVersion: 1.0.0
management:
docChecksum: d0eca6499a61add8ec83c5a828ab767e
docVersion: 0.1.0
speakeasyVersion: 1.47.1
generationVersion: 2.39.2
speakeasyVersion: 1.47.2
generationVersion: 2.39.8
generation:
sdkClassName: SDK
singleTagPerOp: false
java:
version: 1.8.0
version: 1.8.1
artifactID: openapi
companyEmail: [email protected]
companyName: My Company
Expand Down
2 changes: 1 addition & 1 deletion java-client-sdk/lib/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ publishing {
maven(MavenPublication) {
groupId = 'org.openapis'
artifactId = 'openapi'
version = '1.8.0'
version = '1.8.1'

from components.java

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class SDKConfiguration {
}};
public String language = "java";
public String openapiDocVersion = "0.1.0";
public String sdkVersion = "1.8.0";
public String genVersion = "2.39.2";
public String sdkVersion = "1.8.1";
public String genVersion = "2.39.8";
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.8.0 2.39.2 0.1.0", res.res.headers.get("X-Speakeasy-User-Agent"));
assertEquals("speakeasy-sdk/java 1.8.1 2.39.8 0.1.0", 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.8.0 2.39.2 0.1.0", res.res.headers.get("X-Speakeasy-User-Agent"));
assertEquals("speakeasy-sdk/java 1.8.1 2.39.8 0.1.0", res.res.headers.get("X-Speakeasy-User-Agent"));
}
}
6 changes: 3 additions & 3 deletions php-client-sdk/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ configVersion: 1.0.0
management:
docChecksum: d0eca6499a61add8ec83c5a828ab767e
docVersion: 0.1.0
speakeasyVersion: 1.47.1
generationVersion: 2.39.2
speakeasyVersion: 1.47.2
generationVersion: 2.39.8
generation:
sdkClassName: SDK
singleTagPerOp: false
php:
version: 1.8.0
version: 1.8.1
maxMethodParams: 5
namespace: OpenAPI\OpenAPI
packageName: openapi/openapi
4 changes: 2 additions & 2 deletions php-client-sdk/src/SDKConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ class SDKConfiguration
];
public string $language = 'php';
public string $openapiDocVersion = '0.1.0';
public string $sdkVersion = '1.8.0';
public string $genVersion = '2.39.2';
public string $sdkVersion = '1.8.1';
public string $genVersion = '2.39.8';
/** @var array<string, array<string, array<string, mixed>>> */
public ?array $globals = [
'parameters' => []
Expand Down
4 changes: 2 additions & 2 deletions php-client-sdk/tests/TelemetryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function testTelemetryUserAgentGet(): void
$this->assertNotNull($response);
$this->assertEquals(200, $response->statusCode);
$this->assertEquals(
'speakeasy-sdk/php 1.8.0 2.39.2 0.1.0',
'speakeasy-sdk/php 1.8.1 2.39.8 0.1.0',
$response->res->headers['X-Speakeasy-User-Agent'],
);
}
Expand All @@ -42,7 +42,7 @@ public function testTelemetrySpeakeasyUserAgentGet(): void
$this->assertEquals(200, $response->statusCode);
$this->assertEquals($userAgent, $response->res->headers['User-Agent']);
$this->assertEquals(
'speakeasy-sdk/php 1.8.0 2.39.2 0.1.0',
'speakeasy-sdk/php 1.8.1 2.39.8 0.1.0',
$response->res->headers['X-Speakeasy-User-Agent'],
);
}
Expand Down
1 change: 1 addition & 0 deletions python-client-sdk/files.gen
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ tests/test_pagination.py
tests/test_parameters.py
tests/test_request_bodies.py
tests/test_response_bodies.py
tests/test_retries.py
tests/test_servers.py
tests/test_telemetry.py
src/sdk/models/operations/apikeyauth.py
Expand Down
6 changes: 3 additions & 3 deletions python-client-sdk/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ configVersion: 1.0.0
management:
docChecksum: d0eca6499a61add8ec83c5a828ab767e
docVersion: 0.1.0
speakeasyVersion: 1.47.1
generationVersion: 2.39.2
speakeasyVersion: 1.47.2
generationVersion: 2.39.8
generation:
sdkClassName: SDK
singleTagPerOp: false
python:
version: 1.8.0
version: 1.8.1
author: Speakeasy
description: Python Client SDK Generated by Speakeasy
maxMethodParams: 5
Expand Down
2 changes: 1 addition & 1 deletion python-client-sdk/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setuptools.setup(
name="openapi",
version="1.8.0",
version="1.8.1",
author="Speakeasy",
description="Python Client SDK Generated by Speakeasy",
long_description=long_description,
Expand Down
4 changes: 1 addition & 3 deletions python-client-sdk/src/sdk/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ def status_post_retries(self, status_code: int, simple_object: Optional[shared.S

retry_config = retries
if retry_config is None:
retry_config = utils.RetryConfig('backoff', True)
retry_config.backoff = utils.BackoffStrategy(10, 200, 1.5, 1000)

retry_config = utils.RetryConfig('backoff', utils.BackoffStrategy(10, 200, 1.5, 1000), True)

def do_request():
return client.request('POST', url, data=data, files=form, headers=headers)
Expand Down
4 changes: 2 additions & 2 deletions python-client-sdk/src/sdk/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ class SDKConfiguration:
globals: dict[str, dict[str, dict[str, Any]]] = field(default_factory=dict)
language: str = 'python'
openapi_doc_version: str = '0.1.0'
sdk_version: str = '1.8.0'
gen_version: str = '2.39.2'
sdk_version: str = '1.8.1'
gen_version: str = '2.39.8'

def get_server_details(self) -> tuple[str, dict[str, str]]:
if self.server_url:
Expand Down
3 changes: 2 additions & 1 deletion python-client-sdk/src/sdk/utils/retries.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ class RetryConfig:
backoff: BackoffStrategy
retry_connection_errors: bool

def __init__(self, strategy: str, retry_connection_errors: bool):
def __init__(self, strategy: str, backoff: BackoffStrategy, retry_connection_errors: bool):
self.strategy = strategy
self.backoff = backoff
self.retry_connection_errors = retry_connection_errors


Expand Down
33 changes: 33 additions & 0 deletions python-client-sdk/tests/test_retries.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""

import uuid

from src.sdk import SDK
from src.sdk.models.operations import *
from src.sdk.utils import BackoffStrategy, RetryConfig

from .helpers import *


def test_retries_succeeds():
record_test('retries-succeeds')

s = SDK()
assert s is not None

res = s.retries.retries_get(str(uuid.uuid4()))
assert res is not None
assert res.status_code == 200
assert res.retries.retries == 3


def test_retries_timeout():
record_test('retries-timeout')

s = SDK()
assert s is not None

res = s.retries.retries_get(str(uuid.uuid4()), 1000000000, RetryConfig(
'backoff', BackoffStrategy(1, 50, 1.1, 100), False))
assert res is not None
assert res.status_code == 503
4 changes: 2 additions & 2 deletions python-client-sdk/tests/test_telemetry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.8.0 2.39.2 0.1.0'
assert res.res.headers['X-Speakeasy-User-Agent'] == 'speakeasy-sdk/python 1.8.1 2.39.8 0.1.0'


def test_telemetry_speakeasy_user_agent_get():
Expand All @@ -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.8.0 2.39.2 0.1.0'
assert res.res.headers['X-Speakeasy-User-Agent'] == 'speakeasy-sdk/python 1.8.1 2.39.8 0.1.0'
6 changes: 3 additions & 3 deletions ruby-client-sdk/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ configVersion: 1.0.0
management:
docChecksum: d0eca6499a61add8ec83c5a828ab767e
docVersion: 0.1.0
speakeasyVersion: 1.47.1
generationVersion: 2.39.2
speakeasyVersion: 1.47.2
generationVersion: 2.39.8
generation:
sdkClassName: SDK
singleTagPerOp: false
ruby:
version: 1.8.0
version: 1.8.1
author: Speakeasy
description: Ruby Client SDK Generated by Speakeasy
maxMethodParams: 5
Expand Down
4 changes: 2 additions & 2 deletions ruby-client-sdk/lib/sdk/sdk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def initialize(security: nil,
@security = nil
@server_url = SERVERS[0]
@language = 'ruby'
@sdk_version = '1.8.0'
@gen_version = '2.39.2'
@sdk_version = '1.8.1'
@gen_version = '2.39.8'
@openapi_doc_version = '0.1.0'
init_sdks
end
Expand Down
2 changes: 1 addition & 1 deletion ruby-client-sdk/openapi.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__)

Gem::Specification.new do |s|
s.name = 'openapi'
s.version = '1.8.0'
s.version = '1.8.1'
s.platform = Gem::Platform::RUBY
s.licenses = ['Apache-2.0']
s.summary = ''
Expand Down
Loading

0 comments on commit b2c0d2d

Please sign in to comment.