Skip to content

Commit

Permalink
Merge pull request #33 from StyraInc/speakeasy-sdk-regen-1714683140
Browse files Browse the repository at this point in the history
chore: 🐝 Update SDK - Generate
  • Loading branch information
chendrix committed May 2, 2024
2 parents 3ce07bb + a40847e commit 339936f
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ management:
docVersion: 0.2.0
speakeasyVersion: 1.277.8
generationVersion: 2.319.10
releaseVersion: 0.7.4
configChecksum: 10454f2a0951dbb3c7dcbd7bbab40df8
releaseVersion: 0.7.5
configChecksum: 2f8f336f3b6a1acddae6a591d4b210ef
repoURL: https://github.com/StyraInc/opa-csharp.git
repoSubDirectory: Styra/Opa/OpenApi/
published: true
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
csharp:
version: 0.7.4
version: 0.7.5
additionalDependencies: []
author: Styra
clientServerStatusCodesAsErrors: true
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,8 @@ string path = "authz/accounts/max_limit";

double maxLimit = opa.evaluate<double>(path, "example") ?? 0.0f;
```
```

<!--If the selected return type `<T>` is possible to deserialize from the returned JSON, `query<T>` will attempt to populate the variable with the value(s) present.
If the selected return type `<T>` is possible to deserialize from the returned JSON, `evaluate<T>` will attempt to populate the variable with the value(s) present.

```csharp
public struct AuthzStatus
Expand All @@ -106,14 +105,15 @@ var input = new Dictionary<string, object>() {

// (local variable) AuthzStatus status
var status = opa.evaluate<AuthzStatus>(path, input) ?? AuthzStatus(false);
```-->
```

> [!NOTE]
> For low-level SDK usage, see the sections below.
---

# OPA OpenAPI SDK (low-level)

<!-- Start SDK Example Usage [usage] -->
## SDK Example Usage

Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,4 +134,14 @@ Based on:
### Generated
- [csharp v0.7.4] .
### Releases
- [NuGet v0.7.4] https://www.nuget.org/packages/Styra.Opa.OpenApi/0.7.4 - .
- [NuGet v0.7.4] https://www.nuget.org/packages/Styra.Opa.OpenApi/0.7.4 - .

## 2024-05-02 20:52:18
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.277.8 (2.319.10) https://github.com/speakeasy-api/speakeasy
### Generated
- [csharp v0.7.5] .
### Releases
- [NuGet v0.7.5] https://www.nuget.org/packages/Styra.Opa.OpenApi/0.7.5 - .
4 changes: 2 additions & 2 deletions Styra/Opa/OpenApi/OpaApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,10 @@ public class OpaApiClient: IOpaApiClient
public SDKConfig SDKConfiguration { get; private set; }

private const string _language = "csharp";
private const string _sdkVersion = "0.7.4";
private const string _sdkVersion = "0.7.5";
private const string _sdkGenVersion = "2.319.10";
private const string _openapiDocVersion = "0.2.0";
private const string _userAgent = "speakeasy-sdk/csharp 0.7.4 2.319.10 0.2.0 Styra.Opa.OpenApi";
private const string _userAgent = "speakeasy-sdk/csharp 0.7.5 2.319.10 0.2.0 Styra.Opa.OpenApi";
private string _serverUrl = "";
private int _serverIndex = 0;
private ISpeakeasyHttpClient _defaultClient;
Expand Down
2 changes: 1 addition & 1 deletion Styra/Opa/Styra.Opa.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<PropertyGroup>
<IsPackable>true</IsPackable>
<PackageId>Styra.Opa</PackageId>
<Version>0.7.3</Version>
<Version>0.7.5</Version>
<Authors>Styra</Authors>
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
Expand Down

0 comments on commit 339936f

Please sign in to comment.