Skip to content

Commit

Permalink
Update Connect Swagger (#1680)
Browse files Browse the repository at this point in the history
Co-authored-by: fundthmcalculus <[email protected]>
Co-authored-by: mewmba <[email protected]>
  • Loading branch information
3 people authored Jun 18, 2024
1 parent ed2f0f7 commit e14d514
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 22 deletions.
1 change: 0 additions & 1 deletion connect/dotnet/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,6 @@ components:
- session
type: object
CreateSessionRequest:
additionalProperties: false
example:
verifications:
- type: GovernmentId
Expand Down
2 changes: 1 addition & 1 deletion connect/dotnet/src/Trinsic.Connect/Client/ApiClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ private HttpRequestMessage NewRequest(
}
}
}


_ = new List<Tuple<HttpContent, string, string>>();

string contentType = null;
Expand Down
20 changes: 4 additions & 16 deletions connect/dotnet/src/Trinsic.Connect/Client/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -362,10 +362,7 @@ public virtual string DateTimeFormat
public virtual IDictionary<string, string> ApiKeyPrefix
{
get => _apiKeyPrefix;
set
{
_apiKeyPrefix = value ?? throw new InvalidOperationException("ApiKeyPrefix collection may not be null.");
}
set => _apiKeyPrefix = value ?? throw new InvalidOperationException("ApiKeyPrefix collection may not be null.");
}

/// <summary>
Expand All @@ -375,10 +372,7 @@ public virtual IDictionary<string, string> ApiKeyPrefix
public virtual IDictionary<string, string> ApiKey
{
get => _apiKey;
set
{
_apiKey = value ?? throw new InvalidOperationException("ApiKey collection may not be null.");
}
set => _apiKey = value ?? throw new InvalidOperationException("ApiKey collection may not be null.");
}

/// <summary>
Expand All @@ -388,10 +382,7 @@ public virtual IDictionary<string, string> ApiKey
public virtual IList<IReadOnlyDictionary<string, object>> Servers
{
get => _servers;
set
{
_servers = value ?? throw new InvalidOperationException("Servers may not be null.");
}
set => _servers = value ?? throw new InvalidOperationException("Servers may not be null.");
}

/// <summary>
Expand All @@ -401,10 +392,7 @@ public virtual IList<IReadOnlyDictionary<string, object>> Servers
public virtual IReadOnlyDictionary<string, List<IReadOnlyDictionary<string, object>>> OperationServers
{
get => _operationServers;
set
{
_operationServers = value ?? throw new InvalidOperationException("Operation servers may not be null.");
}
set => _operationServers = value ?? throw new InvalidOperationException("Operation servers may not be null.");
}

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

using System;
using System.Collections.Generic;
using System.Net;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

using System;
using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;

Expand Down
3 changes: 1 addition & 2 deletions connect/swagger_api.json
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,7 @@
},
"nullable": true
}
},
"additionalProperties": false
}
},
"CreateSessionResponse": {
"required": [
Expand Down

0 comments on commit e14d514

Please sign in to comment.