We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9048c1 commit cb8288bCopy full SHA for cb8288b
src/Microsoft.OpenApi/Validations/Rules/JsonSchemaRules.cs
@@ -43,7 +43,7 @@ public static class JsonSchemaRules
43
for (int i = 0; i < examplesCount; i++)
44
{
45
context.Enter(i.ToString());
46
- RuleHelpers.ValidateDataTypeMismatch(context, nameof(SchemaMismatchedDataType), jsonSchema.GetExamples().ElementAt(i), jsonSchema);
+ RuleHelpers.ValidateDataTypeMismatch(context, nameof(SchemaMismatchedDataType), examples.ElementAt(i), jsonSchema);
47
context.Exit();
48
}
49
0 commit comments