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 807890c commit 964b751Copy full SHA for 964b751
src/Microsoft.OpenApi.Readers/V31/JsonSchemaDeserializer.cs
@@ -236,15 +236,14 @@ internal static partial class OpenApiV31Deserializer
236
{
237
"example", (o, n) =>
238
239
- if(n is ListNode)
+ o.Example(n.CreateAny().Node);
240
+ }
241
+ },
242
+ {
243
+ "examples", (o, n) =>
244
245
o.Examples(n.CreateSimpleList(s => (JsonNode)s.GetScalarValue()));
246
}
- else
- {
- o.Example(n.CreateAny().Node);
- }
247
248
},
249
250
"deprecated", (o, n) =>
0 commit comments