Skip to content

feat: Updated OpenAPI spec #207

feat: Updated OpenAPI spec

feat: Updated OpenAPI spec #207

Triggered via push October 18, 2024 01:18
Status Failure
Total duration 1m 57s
Artifacts

dotnet.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 4 warnings
Publish: src/libs/OpenAI/Conversions/CreateMessageRequest.cs#L52
Cannot implicitly convert type 'System.Collections.Generic.List<OpenAI.OneOf<OpenAI.MessageContentImageFileObject, OpenAI.MessageContentImageUrlObject, OpenAI.MessageRequestContentTextObject>>' to 'OpenAI.OneOf<string, System.Collections.Generic.IList<OpenAI.ContentVariant2Item>>'
Publish: src/libs/OpenAI/Conversions/CreateMessageRequest.cs#L94
Cannot implicitly convert type 'System.Collections.Generic.List<OpenAI.OneOf<OpenAI.MessageContentImageFileObject, OpenAI.MessageContentImageUrlObject, OpenAI.MessageRequestContentTextObject>>' to 'OpenAI.OneOf<string, System.Collections.Generic.IList<OpenAI.ContentVariant2Item>>'
Publish: src/libs/OpenAI/AssistantClient.CreateRun.AsStream.cs#L207
Cannot implicitly convert type 'System.Collections.Generic.IList<OpenAI.OneOf<OpenAI.AssistantToolsCode, OpenAI.AssistantToolsFileSearch, OpenAI.AssistantToolsFunction>>' to 'System.Collections.Generic.IList<OpenAI.ToolsItem4>'. An explicit conversion exists (are you missing a cast?)
Publish: src/libs/OpenAI/ChatClient.CreateChatCompletion.AsStream.cs#L238
Cannot implicitly convert type 'OpenAI.OneOf<OpenAI.ResponseFormatText, OpenAI.ResponseFormatJsonObject, OpenAI.ResponseFormatJsonSchema>?' to 'OpenAI.ResponseFormat?'
Publish: src/libs/OpenAI/Conversions/CreateMessageRequest.cs#L52
Cannot implicitly convert type 'System.Collections.Generic.List<OpenAI.OneOf<OpenAI.MessageContentImageFileObject, OpenAI.MessageContentImageUrlObject, OpenAI.MessageRequestContentTextObject>>' to 'OpenAI.OneOf<string, System.Collections.Generic.IList<OpenAI.ContentVariant2Item>>'
Publish: src/libs/OpenAI/Conversions/CreateMessageRequest.cs#L94
Cannot implicitly convert type 'System.Collections.Generic.List<OpenAI.OneOf<OpenAI.MessageContentImageFileObject, OpenAI.MessageContentImageUrlObject, OpenAI.MessageRequestContentTextObject>>' to 'OpenAI.OneOf<string, System.Collections.Generic.IList<OpenAI.ContentVariant2Item>>'
Publish: src/libs/OpenAI/AssistantClient.CreateRun.AsStream.cs#L207
Cannot implicitly convert type 'System.Collections.Generic.IList<OpenAI.OneOf<OpenAI.AssistantToolsCode, OpenAI.AssistantToolsFileSearch, OpenAI.AssistantToolsFunction>>' to 'System.Collections.Generic.IList<OpenAI.ToolsItem4>'. An explicit conversion exists (are you missing a cast?)
Publish: src/libs/OpenAI/ChatClient.CreateChatCompletion.AsStream.cs#L238
Cannot implicitly convert type 'OpenAI.OneOf<OpenAI.ResponseFormatText, OpenAI.ResponseFormatJsonObject, OpenAI.ResponseFormatJsonSchema>?' to 'OpenAI.ResponseFormat?'
Publish: src/libs/OpenAI/AssistantClient.CreateRun.AsStream.cs#L207
Cannot implicitly convert type 'System.Collections.Generic.IList<OpenAI.OneOf<OpenAI.AssistantToolsCode, OpenAI.AssistantToolsFileSearch, OpenAI.AssistantToolsFunction>>' to 'System.Collections.Generic.IList<OpenAI.ToolsItem4>'. An explicit conversion exists (are you missing a cast?)
Publish: src/libs/OpenAI/Conversions/CreateMessageRequest.cs#L52
Cannot implicitly convert type 'System.Collections.Generic.List<OpenAI.OneOf<OpenAI.MessageContentImageFileObject, OpenAI.MessageContentImageUrlObject, OpenAI.MessageRequestContentTextObject>>' to 'OpenAI.OneOf<string, System.Collections.Generic.IList<OpenAI.ContentVariant2Item>>'
Publish: src/libs/CSharpToJsonSchema/TypeToSchemaHelpers.cs#L58
Using member 'System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver.DefaultJsonTypeInfoResolver()' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.
Publish: src/libs/CSharpToJsonSchema/TypeToSchemaHelpers.cs#L58
Using member 'System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver.DefaultJsonTypeInfoResolver()' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.
Publish: src/libs/CSharpToJsonSchema/TypeToSchemaHelpers.cs#L58
Using member 'System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver.DefaultJsonTypeInfoResolver()' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.
Publish: src/libs/CSharpToJsonSchema/TypeToSchemaHelpers.cs#L58
Using member 'System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver.DefaultJsonTypeInfoResolver()' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.