Skip to content

Commit

Permalink
fix: Added missing UnixTimestampJsonConverter in JsonSettings.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Nov 18, 2024
1 parent 493fa90 commit e9111ae
Show file tree
Hide file tree
Showing 62 changed files with 66 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.OpenApi.Readers" Version="1.6.21" />
<PackageReference Include="AutoSDK" Version="0.26.1-dev.11" />
<PackageReference Include="Microsoft.OpenApi.Readers" Version="1.6.22" />
<PackageReference Include="AutoSDK" Version="0.27.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</ItemGroup>

<ItemGroup Label="Source Link">
<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.2.4">
<PackageReference Include="DotNet.ReproducibleBuilds" Version="1.2.25">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
4 changes: 4 additions & 0 deletions src/libs/AutoSDK/Sources/Data.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,10 @@ public static Models.Data Prepare(
string.Join(", ", x.Children
.Where(y => y.Hint is Hint.AnyOf or Hint.OneOf or Hint.AllOf)
.Select(y => y.TypeData.CSharpTypeWithNullabilityForValueTypes))}>"))
// Unix Timestamp converter
.Concat([
$"global::{settings.Namespace}.JsonConverters.UnixTimestampJsonConverter",
])
.ToImmutableArray();

var includedTags = allTags
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable
new global::G.JsonConverters.AnyOfJsonConverter<string, int?>(),
new global::G.JsonConverters.AnyOfJsonConverter<string, global::System.Collections.Generic.IList<string>>(),
new global::G.JsonConverters.AnyOfJsonConverter<global::G.ChatCompletion, global::System.Collections.Generic.IList<global::G.ChatCompletionVllmStreamingMessage>>(),
new global::G.JsonConverters.UnixTimestampJsonConverter(),
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ internal sealed partial class JsonSerializerContextConverters
typeof(global::G.JsonConverters.AnyOfJsonConverter<string, int?>),
typeof(global::G.JsonConverters.AnyOfJsonConverter<string, global::System.Collections.Generic.IList<string>>),
typeof(global::G.JsonConverters.AnyOfJsonConverter<global::G.ChatCompletion, global::System.Collections.Generic.IList<global::G.ChatCompletionVllmStreamingMessage>>),
typeof(global::G.JsonConverters.UnixTimestampJsonConverter),
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable
new global::G.JsonConverters.OneOfJsonConverter<string, global::System.Collections.Generic.IList<global::G.Block>>(),
new global::G.JsonConverters.OneOfJsonConverter<string, global::System.Collections.Generic.IList<global::G.Block>>(),
new global::G.JsonConverters.OneOfJsonConverter<string, global::System.Collections.Generic.IList<global::G.Block>>(),
new global::G.JsonConverters.UnixTimestampJsonConverter(),
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ internal sealed partial class JsonSerializerContextConverters
typeof(global::G.JsonConverters.OneOfJsonConverter<string, global::System.Collections.Generic.IList<global::G.Block>>),
typeof(global::G.JsonConverters.OneOfJsonConverter<string, global::System.Collections.Generic.IList<global::G.Block>>),
typeof(global::G.JsonConverters.OneOfJsonConverter<string, global::System.Collections.Generic.IList<global::G.Block>>),
typeof(global::G.JsonConverters.UnixTimestampJsonConverter),
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable
new global::G.JsonConverters.OneOfJsonConverter<string, object>(),
new global::G.JsonConverters.AnyOfJsonConverter<global::G.LemurModel?, string>(),
new global::G.JsonConverters.OneOfJsonConverter<string, object>(),
new global::G.JsonConverters.UnixTimestampJsonConverter(),
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ internal sealed partial class JsonSerializerContextConverters
typeof(global::G.JsonConverters.OneOfJsonConverter<string, object>),
typeof(global::G.JsonConverters.AnyOfJsonConverter<global::G.LemurModel?, string>),
typeof(global::G.JsonConverters.OneOfJsonConverter<string, object>),
typeof(global::G.JsonConverters.UnixTimestampJsonConverter),
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable
new global::G.JsonConverters.OneOfJsonConverter<global::G.NonStreamedChatResponse, global::G.StreamedChatResponse?>(),
new global::G.JsonConverters.OneOfJsonConverter<global::G.ChatResponse, global::G.StreamedChatResponseV2?>(),
new global::G.JsonConverters.OneOfJsonConverter<global::G.EmbedFloatsResponse, global::G.EmbedByTypeResponse>(),
new global::G.JsonConverters.UnixTimestampJsonConverter(),
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ internal sealed partial class JsonSerializerContextConverters
typeof(global::G.JsonConverters.OneOfJsonConverter<global::G.NonStreamedChatResponse, global::G.StreamedChatResponse?>),
typeof(global::G.JsonConverters.OneOfJsonConverter<global::G.ChatResponse, global::G.StreamedChatResponseV2?>),
typeof(global::G.JsonConverters.OneOfJsonConverter<global::G.EmbedFloatsResponse, global::G.EmbedByTypeResponse>),
typeof(global::G.JsonConverters.UnixTimestampJsonConverter),
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable
DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
Converters =
{
new global::G.JsonConverters.UnixTimestampJsonConverter(),
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ internal sealed partial class JsonSerializerContextConverters
{
private readonly global::System.Type[] _types = new global::System.Type[]
{
typeof(global::G.JsonConverters.UnixTimestampJsonConverter),
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable
new global::G.JsonConverters.MigrationsGetStatusForOrgExcludeItemJsonConverter(),
new global::G.JsonConverters.MigrationsGetStatusForOrgExcludeItemNullableJsonConverter(),
new global::G.JsonConverters.OneOfJsonConverter<string, int?, global::System.Collections.Generic.IList<string>>(),
new global::G.JsonConverters.UnixTimestampJsonConverter(),
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ internal sealed partial class JsonSerializerContextConverters
typeof(global::G.JsonConverters.MigrationsGetStatusForOrgExcludeItemJsonConverter),
typeof(global::G.JsonConverters.MigrationsGetStatusForOrgExcludeItemNullableJsonConverter),
typeof(global::G.JsonConverters.OneOfJsonConverter<string, int?, global::System.Collections.Generic.IList<string>>),
typeof(global::G.JsonConverters.UnixTimestampJsonConverter),
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5862,6 +5862,7 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable
new global::G.JsonConverters.OneOfJsonConverter<global::G.PrivateUser, global::G.PublicUser>(),
new global::G.JsonConverters.OneOfJsonConverter<global::G.PrivateUser, global::G.PublicUser>(),
new global::G.JsonConverters.AnyOfJsonConverter<global::System.Collections.Generic.IList<global::G.StarredRepository>, global::System.Collections.Generic.IList<global::G.Repository>>(),
new global::G.JsonConverters.UnixTimestampJsonConverter(),
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5832,6 +5832,7 @@ internal sealed partial class JsonSerializerContextConverters
typeof(global::G.JsonConverters.OneOfJsonConverter<global::G.PrivateUser, global::G.PublicUser>),
typeof(global::G.JsonConverters.OneOfJsonConverter<global::G.PrivateUser, global::G.PublicUser>),
typeof(global::G.JsonConverters.AnyOfJsonConverter<global::System.Collections.Generic.IList<global::G.StarredRepository>, global::System.Collections.Generic.IList<global::G.Repository>>),
typeof(global::G.JsonConverters.UnixTimestampJsonConverter),
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable
Converters =
{
new global::G.JsonConverters.AnyOfJsonConverter<string, global::System.Collections.Generic.IList<string>>(),
new global::G.JsonConverters.UnixTimestampJsonConverter(),
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ internal sealed partial class JsonSerializerContextConverters
private readonly global::System.Type[] _types = new global::System.Type[]
{
typeof(global::G.JsonConverters.AnyOfJsonConverter<string, global::System.Collections.Generic.IList<string>>),
typeof(global::G.JsonConverters.UnixTimestampJsonConverter),
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable
new global::G.JsonConverters.AsnResponseTypeNullableJsonConverter(),
new global::G.JsonConverters.CompanyTypeJsonConverter(),
new global::G.JsonConverters.CompanyTypeNullableJsonConverter(),
new global::G.JsonConverters.UnixTimestampJsonConverter(),
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ internal sealed partial class JsonSerializerContextConverters
typeof(global::G.JsonConverters.AsnResponseTypeNullableJsonConverter),
typeof(global::G.JsonConverters.CompanyTypeJsonConverter),
typeof(global::G.JsonConverters.CompanyTypeNullableJsonConverter),
typeof(global::G.JsonConverters.UnixTimestampJsonConverter),
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable
new global::G.JsonConverters.AnyOfJsonConverter<global::System.Collections.Generic.IList<global::G.ExampleWithRuns>, global::System.Collections.Generic.IList<global::G.ExampleWithRunsCH>>(),
new global::G.JsonConverters.AnyOfJsonConverter<global::G.FeedbackIngestTokenSchema, global::System.Collections.Generic.IList<global::G.FeedbackIngestTokenSchema>>(),
new global::G.JsonConverters.AnyOfJsonConverter<global::System.Collections.Generic.IList<global::G.PublicExampleWithRuns>, global::System.Collections.Generic.IList<global::G.ExampleWithRunsCH>>(),
new global::G.JsonConverters.UnixTimestampJsonConverter(),
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ internal sealed partial class JsonSerializerContextConverters
typeof(global::G.JsonConverters.AnyOfJsonConverter<global::System.Collections.Generic.IList<global::G.ExampleWithRuns>, global::System.Collections.Generic.IList<global::G.ExampleWithRunsCH>>),
typeof(global::G.JsonConverters.AnyOfJsonConverter<global::G.FeedbackIngestTokenSchema, global::System.Collections.Generic.IList<global::G.FeedbackIngestTokenSchema>>),
typeof(global::G.JsonConverters.AnyOfJsonConverter<global::System.Collections.Generic.IList<global::G.PublicExampleWithRuns>, global::System.Collections.Generic.IList<global::G.ExampleWithRunsCH>>),
typeof(global::G.JsonConverters.UnixTimestampJsonConverter),
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable
new global::G.JsonConverters.CanvasRequestTypeNullableJsonConverter(),
new global::G.JsonConverters.CreateGenerationRequestTransparencyJsonConverter(),
new global::G.JsonConverters.CreateGenerationRequestTransparencyNullableJsonConverter(),
new global::G.JsonConverters.UnixTimestampJsonConverter(),
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ internal sealed partial class JsonSerializerContextConverters
typeof(global::G.JsonConverters.CanvasRequestTypeNullableJsonConverter),
typeof(global::G.JsonConverters.CreateGenerationRequestTransparencyJsonConverter),
typeof(global::G.JsonConverters.CreateGenerationRequestTransparencyNullableJsonConverter),
typeof(global::G.JsonConverters.UnixTimestampJsonConverter),
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable
new global::G.JsonConverters.AnyOfJsonConverter<string, int?>(),
new global::G.JsonConverters.AllOfJsonConverter<global::G.Accelerator?>(),
new global::G.JsonConverters.AllOfJsonConverter<global::G.OrderBy?>(),
new global::G.JsonConverters.UnixTimestampJsonConverter(),
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ internal sealed partial class JsonSerializerContextConverters
typeof(global::G.JsonConverters.AnyOfJsonConverter<string, int?>),
typeof(global::G.JsonConverters.AllOfJsonConverter<global::G.Accelerator?>),
typeof(global::G.JsonConverters.AllOfJsonConverter<global::G.OrderBy?>),
typeof(global::G.JsonConverters.UnixTimestampJsonConverter),
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable
new global::G.JsonConverters.CreateModelStatusJsonConverter(),
new global::G.JsonConverters.PullModelStatusJsonConverter(),
new global::G.JsonConverters.AnyOfJsonConverter<string, global::G.PushModelResponseStatus?>(),
new global::G.JsonConverters.UnixTimestampJsonConverter(),
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ internal sealed partial class JsonSerializerContextConverters
typeof(global::G.JsonConverters.CreateModelStatusJsonConverter),
typeof(global::G.JsonConverters.PullModelStatusJsonConverter),
typeof(global::G.JsonConverters.AnyOfJsonConverter<string, global::G.PushModelResponseStatus?>),
typeof(global::G.JsonConverters.UnixTimestampJsonConverter),
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@ internal sealed partial class JsonSerializerContextConverters
typeof(global::G.JsonConverters.AnyOfJsonConverter<string, global::G.CreateThreadAndRunRequestModel?>),
typeof(global::G.JsonConverters.OneOfJsonConverter<global::G.CreateTranscriptionResponseJson, global::G.CreateTranscriptionResponseVerboseJson>),
typeof(global::G.JsonConverters.OneOfJsonConverter<global::G.CreateTranslationResponseJson, global::G.CreateTranslationResponseVerboseJson>),
typeof(global::G.JsonConverters.UnixTimestampJsonConverter),
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable
DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
Converters =
{
new global::G.JsonConverters.UnixTimestampJsonConverter(),
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ internal sealed partial class JsonSerializerContextConverters
{
private readonly global::System.Type[] _types = new global::System.Type[]
{
typeof(global::G.JsonConverters.UnixTimestampJsonConverter),
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable
new global::G.JsonConverters.DeploymentsGetResponseCurrentReleaseCreatedByTypeNullableJsonConverter(),
new global::G.JsonConverters.DeploymentsUpdateResponseCurrentReleaseCreatedByTypeJsonConverter(),
new global::G.JsonConverters.DeploymentsUpdateResponseCurrentReleaseCreatedByTypeNullableJsonConverter(),
new global::G.JsonConverters.UnixTimestampJsonConverter(),
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ internal sealed partial class JsonSerializerContextConverters
typeof(global::G.JsonConverters.DeploymentsGetResponseCurrentReleaseCreatedByTypeNullableJsonConverter),
typeof(global::G.JsonConverters.DeploymentsUpdateResponseCurrentReleaseCreatedByTypeJsonConverter),
typeof(global::G.JsonConverters.DeploymentsUpdateResponseCurrentReleaseCreatedByTypeNullableJsonConverter),
typeof(global::G.JsonConverters.UnixTimestampJsonConverter),
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable
DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
Converters =
{
new global::G.JsonConverters.UnixTimestampJsonConverter(),
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ internal sealed partial class JsonSerializerContextConverters
{
private readonly global::System.Type[] _types = new global::System.Type[]
{
typeof(global::G.JsonConverters.UnixTimestampJsonConverter),
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable
new global::G.JsonConverters.OneOfJsonConverter<string, global::System.Collections.Generic.IList<string>>(),
new global::G.JsonConverters.OneOfJsonConverter<global::System.Collections.Generic.IList<object>, global::System.Collections.Generic.IList<string>>(),
new global::G.JsonConverters.OneOfJsonConverter<global::G.FullTrainingType, global::G.LoRATrainingType>(),
new global::G.JsonConverters.UnixTimestampJsonConverter(),
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ internal sealed partial class JsonSerializerContextConverters
typeof(global::G.JsonConverters.OneOfJsonConverter<string, global::System.Collections.Generic.IList<string>>),
typeof(global::G.JsonConverters.OneOfJsonConverter<global::System.Collections.Generic.IList<object>, global::System.Collections.Generic.IList<string>>),
typeof(global::G.JsonConverters.OneOfJsonConverter<global::G.FullTrainingType, global::G.LoRATrainingType>),
typeof(global::G.JsonConverters.UnixTimestampJsonConverter),
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ public sealed partial class Api : global::G.IApi, global::System.IDisposable
new global::G.JsonConverters.GetVideosSortNullableJsonConverter(),
new global::G.JsonConverters.GetVideosTypeJsonConverter(),
new global::G.JsonConverters.GetVideosTypeNullableJsonConverter(),
new global::G.JsonConverters.UnixTimestampJsonConverter(),
}
};

Expand Down
Loading

0 comments on commit e9111ae

Please sign in to comment.