Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:Updated OpenAPI spec #30

Merged
merged 1 commit into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading