Skip to content

Commit

Permalink
feat: Updated OpenAPI spec
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 13, 2024
1 parent 1c8d06a commit a0efac4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ partial void ProcessAccountUpdateDetailsV1MePatchResponseContent(
/// <param name="website">
/// Company website address
/// </param>
/// <param name="username">
/// String with length between 1 and 39 characters. Only alphanumeric characters and dashes allowed. Must contain no leading, trailing or consecutive dashes.
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::DeepInfra.AccountUpdateDetailsV1MePatchResponse> AccountUpdateDetailsV1MePatchAsync(
Expand All @@ -115,6 +118,7 @@ partial void ProcessAccountUpdateDetailsV1MePatchResponseContent(
bool isBusinessAccount = default,
string? company = default,
string? website = default,
string? username = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::DeepInfra.MeIn
Expand All @@ -124,6 +128,7 @@ partial void ProcessAccountUpdateDetailsV1MePatchResponseContent(
IsBusinessAccount = isBusinessAccount,
Company = company,
Website = website,
Username = username,
};

return await AccountUpdateDetailsV1MePatchAsync(
Expand Down
6 changes: 6 additions & 0 deletions src/libs/DeepInfra/Generated/DeepInfra.Models.MeIn.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ public sealed partial class MeIn
[global::System.Text.Json.Serialization.JsonPropertyName("website")]
public string? Website { get; set; }

/// <summary>
/// String with length between 1 and 39 characters. Only alphanumeric characters and dashes allowed. Must contain no leading, trailing or consecutive dashes.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("username")]
public string? Username { get; set; }

/// <summary>
/// Additional properties that are not explicitly defined in the schema
/// </summary>
Expand Down
7 changes: 7 additions & 0 deletions src/libs/DeepInfra/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3074,6 +3074,13 @@ components:
minLength: 1
type: string
description: Company website address
username:
title: Username
maxLength: 39
minLength: 1
pattern: '^[a-zA-Z0-9]+(-[a-zA-Z0-9]+)*$'
type: string
description: 'String with length between 1 and 39 characters. Only alphanumeric characters and dashes allowed. Must contain no leading, trailing or consecutive dashes.'
MeUsername:
title: MeUsername
required:
Expand Down

0 comments on commit a0efac4

Please sign in to comment.