You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dotnet run -- validate -d https://raw.githubusercontent.com/documentaciononyxsoft/documentacion/refs/heads/master/ApiIntervention.yaml
crit: Microsoft.OpenApi.Hidi.Handlers.ValidateCommandHandler[0]
Command failed
Unhandled exception: System.InvalidOperationException: Could not validate the document, reason: Unable to cast object of type 'System.String[]' to type 'System.String'.
---> System.InvalidCastException: Unable to cast object of type 'System.String[]' to type 'System.String'.
at Microsoft.OpenApi.Validations.Rules.RuleHelpers.ValidateDataTypeMismatch(IValidationContext context, String ruleName, JsonNode value, OpenApiSchema schema) in D:\github\microsoft\openapi.net\src\Microsoft.OpenApi\Validations\Rules\RuleHelpers.cs:line 58
Describe the bug
dotnet run -- validate -d https://raw.githubusercontent.com/documentaciononyxsoft/documentacion/refs/heads/master/ApiIntervention.yaml
crit: Microsoft.OpenApi.Hidi.Handlers.ValidateCommandHandler[0]
Command failed
Unhandled exception: System.InvalidOperationException: Could not validate the document, reason: Unable to cast object of type 'System.String[]' to type 'System.String'.
---> System.InvalidCastException: Unable to cast object of type 'System.String[]' to type 'System.String'.
at Microsoft.OpenApi.Validations.Rules.RuleHelpers.ValidateDataTypeMismatch(IValidationContext context, String ruleName, JsonNode value, OpenApiSchema schema) in D:\github\microsoft\openapi.net\src\Microsoft.OpenApi\Validations\Rules\RuleHelpers.cs:line 58
OpenApi File To Reproduce
https://raw.githubusercontent.com/documentaciononyxsoft/documentacion/refs/heads/master/ApiIntervention.yaml
Expected behavior
I don't expect ValidateDataTypeMismatch. I was expecting that we had removed this rule from the default set of rules.
The text was updated successfully, but these errors were encountered: