Skip to content

Commit c574203

Browse files
committed
fix: content property for header is not getting deserialized v3/3.1/3.2
Signed-off-by: Vincent Biret <[email protected]>
1 parent 1d80375 commit c574203

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

src/Microsoft.OpenApi/Reader/V3/OpenApiHeaderDeserializer.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ internal static partial class OpenApiV3Deserializer
8787
"schema",
8888
(o, n, t) => o.Schema = LoadSchema(n, t)
8989
},
90+
{
91+
"content", (o, n, t) =>
92+
{
93+
o.Content = n.CreateMap(LoadMediaType, t);
94+
}
95+
},
9096
{
9197
"examples",
9298
(o, n, t) => o.Examples = n.CreateMap(LoadExample, t)

src/Microsoft.OpenApi/Reader/V31/OpenApiHeaderDeserializer.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ internal static partial class OpenApiV31Deserializer
8787
o.Schema = LoadSchema(n, t);
8888
}
8989
},
90+
{
91+
"content", (o, n, t) =>
92+
{
93+
o.Content = n.CreateMap(LoadMediaType, t);
94+
}
95+
},
9096
{
9197
"examples", (o, n, t) =>
9298
{

src/Microsoft.OpenApi/Reader/V32/OpenApiHeaderDeserializer.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,12 @@ internal static partial class OpenApiV32Deserializer
8787
o.Schema = LoadSchema(n, t);
8888
}
8989
},
90+
{
91+
"content", (o, n, t) =>
92+
{
93+
o.Content = n.CreateMap(LoadMediaType, t);
94+
}
95+
},
9096
{
9197
"examples", (o, n, t) =>
9298
{

0 commit comments

Comments
 (0)