Skip to content

Sanitize Property Names #18

Sanitize Property Names

Sanitize Property Names #18

Triggered via pull request May 27, 2024 06:42
Status Failure
Total duration 2m 51s
Artifacts

pull-request.yml

on: pull_request
Build, test and publish  /  Build, test and publish
2m 42s
Build, test and publish / Build, test and publish
Fit to window
Zoom out
Zoom in

Annotations

2 errors and 10 warnings
OpenAi
Test method OpenApiGenerator.UnitTests.ClientTests.OpenAi threw exception: VerifyException: Directory: /home/runner/work/OpenApiGenerator/OpenApiGenerator/src/tests/OpenApiGenerator.UnitTests/Snapshots/Clients/OpenAi NotEqual: - Received: _.received.txt Verified: _.verified.txt FileContent: NotEqual: Received: _.received.txt [ { Id: CreateChatCompletion, Namespace: G, ClassName: ChatClient, BaseUrl: , Stream: false, Path: "/chat/completions", AuthorizationScheme: , Properties: [ { Id: messages, Name: Messages, Type: { CSharpType: global::System.Collections.Generic.IList<ChatCompletionRequestMessage>, IsArray: true, IsEnum: false, Properties: null, EnumValues: null }, IsRequired: true, IsDeprecated: false, Summary: A list of messages comprising the conversation so far. [Example Python code](https://cookbook.openai.com/examples/how_to_format_inputs_to_chatgpt_models)., ParameterName: messages, ArgumentName: messages, ParameterDefaultValue: default }, { Id: model, Name: Model, Type: { CSharpType: object, IsArray: false, IsEnum: false, Properties: null, EnumValues: null }, IsRequired: true, IsDeprecated: false, Summary: ID of the model to use. See the [model endpoint compatibility](/docs/models/model-endpoint-compatibility) table for details on which models work with the Chat API. <br/>Example: gpt-4-turbo, ParameterName: model, ArgumentName: model, ParameterDefaultValue: default }, { Id: frequency_penalty, Name: FrequencyPenalty, Type: { CSharpType: double?, IsArray: false, IsEnum: false, Properties: null, EnumValues: null }, IsRequired: false, DefaultValue: 0, IsDeprecated: false, Summary: Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. [See more information about frequency and presence penalties.](/docs/guides/text-generation/parameter-details) <br/>Default Value: 0, ParameterName: frequencyPenalty, ArgumentName: frequencyPenalty, ParameterDefaultValue: 0 }, { Id: logit_bias, Name: LogitBias, Type: { CSharpType: object?, IsArray: false, IsEnum: false, Properties: null, EnumValues: null }, IsRequired: false, DefaultValue: , IsDeprecated: false, Summary: Modify the likelihood of specified tokens appearing in the completion. Accepts a JSON object that maps tokens (specified by their token ID in the tokenizer) to an associated bias value from -100 to 100. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token. <br/>Default Value: , ParameterName: logitBias, ArgumentName: logitBias, ParameterDefaultValue: default }, { Id: logprobs, Name: Logprobs, Type: { CSharpType: bool?, IsArray: false, IsEnum: false, Properties: null, EnumValues: null }, IsRequired: false, DefaultValue: false, IsDeprecated: false, Summary: Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the `content` of `message`. <br/>Default Value: false, ParameterName: logprobs, ArgumentName: logprobs, ParameterDefaultValue: false },
Build, test and publish / Build, test and publish
Process completed with exit code 1.
Build, test and publish / Build, test and publish: src/libs/OpenApiGenerator.Core/Models/PropertyData.cs#L130
Because property UnsanitaryName is write-only, either add a property getter with an accessibility that is greater than or equal to its setter or convert this property into a method (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1044)
Build, test and publish / Build, test and publish: src/libs/OpenApiGenerator.Core/Models/PropertyData.cs#L130
Because property UnsanitaryName is write-only, either add a property getter with an accessibility that is greater than or equal to its setter or convert this property into a method (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1044)
Build, test and publish / Build, test and publish: src/libs/OpenApiGenerator.Core/Models/PropertyData.cs#L130
Because property UnsanitaryName is write-only, either add a property getter with an accessibility that is greater than or equal to its setter or convert this property into a method (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1044)
Build, test and publish / Build, test and publish: src/libs/OpenApiGenerator.Core/Models/PropertyData.cs#L130
Because property UnsanitaryName is write-only, either add a property getter with an accessibility that is greater than or equal to its setter or convert this property into a method (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1044)
Build, test and publish / Build, test and publish: src/libs/OpenApiGenerator.Core/Models/PropertyData.cs#L130
Because property UnsanitaryName is write-only, either add a property getter with an accessibility that is greater than or equal to its setter or convert this property into a method (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1044)
Build, test and publish / Build, test and publish: src/libs/OpenApiGenerator.Core/Models/PropertyData.cs#L130
Because property UnsanitaryName is write-only, either add a property getter with an accessibility that is greater than or equal to its setter or convert this property into a method (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1044)