Skip to content

Commit

Permalink
ci: regenerated with OpenAPI Doc 0.3.0, Speakeay CLI 1.31.1
Browse files Browse the repository at this point in the history
  • Loading branch information
speakeasybot committed May 13, 2023
1 parent ccefe52 commit 7b26316
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
10 changes: 9 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,4 +326,12 @@ Based on:
- OpenAPI Doc 0.3.0 https://docs.speakeasyapi.dev/openapi.yaml
- Speakeasy CLI 1.30.1 (2.26.4) https://github.com/speakeasy-api/speakeasy
### Releases
- [Composer v0.16.1] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.16.1 - .
- [Composer v0.16.1] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.16.1 - .

## 2023-05-13 00:11:08
### Changes
Based on:
- OpenAPI Doc 0.3.0 https://docs.speakeasyapi.dev/openapi.yaml
- Speakeasy CLI 1.31.1 (2.27.0) https://github.com/speakeasy-api/speakeasy
### Releases
- [Composer v0.17.0] https://packagist.org/packages/speakeasy-api/speakeasy-client-sdk-php#v0.17.0 - .
6 changes: 3 additions & 3 deletions gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ configVersion: 1.0.0
management:
docChecksum: 2bba3b8f9d211b02569b3f9aff0d34b4
docVersion: 0.3.0
speakeasyVersion: 1.30.1
generationVersion: 2.26.4
speakeasyVersion: 1.31.1
generationVersion: 2.27.0
generation:
telemetryEnabled: true
sdkClassName: SDK
singleTagPerOp: false
php:
version: 0.16.1
version: 0.17.0
maxMethodParams: 0
namespace: Speakeasy\SpeakeasyClientSDK
packageName: speakeasy-api/speakeasy-client-sdk-php
4 changes: 2 additions & 2 deletions src/SDK.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ class SDK
private ?Models\Shared\Security $_security;
private string $_serverUrl;
private string $_language = 'php';
private string $_sdkVersion = '0.16.1';
private string $_genVersion = '2.26.4';
private string $_sdkVersion = '0.17.0';
private string $_genVersion = '2.27.0';

/**
* Returns a new instance of the SDK builder used to configure and create the SDK instance.
Expand Down
3 changes: 2 additions & 1 deletion src/Utils/Security.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,12 @@ private function parseSecuritySchemeValue(mixed $value, SecurityMetadata $metada
case 'http':
switch ($metadata->subtype) {
case 'bearer':
$clientOptions['headers'][$fieldMetadata->name] = $value;
$clientOptions['headers'][$fieldMetadata->name] = preg_match('/^Bearer /i', $value) ? $value : 'Bearer ' . $value;
break;
default:
throw new \Exception('Unknown http security scheme subtype: ' . $metadata->subtype);
}
break;
default:
throw new \Exception('Unknown security scheme type: ' . $metadata->type);
}
Expand Down

0 comments on commit 7b26316

Please sign in to comment.