@@ -11,7 +11,7 @@ namespace Microsoft.OpenApi
1111 /// <summary>
1212 /// Parameter Object.
1313 /// </summary>
14- public class OpenApiParameter : IOpenApiExtensible , IOpenApiParameter , IOpenApiContentElement
14+ public class OpenApiParameter : IOpenApiExtensible , IOpenApiParameter
1515 {
1616 private bool ? _explode ;
1717 private ParameterStyle ? _style ;
@@ -60,15 +60,7 @@ public bool Explode
6060 /// <inheritdoc/>
6161 public JsonNode ? Example { get ; set ; }
6262
63- /// <summary>
64- /// A map containing the representations for the parameter.
65- /// The key is the media type and the value describes it.
66- /// The map MUST only contain one entry.
67- /// For more complex scenarios, the content property can define the media type and schema of the parameter.
68- /// A parameter MUST contain either a schema property, or a content property, but not both.
69- /// When example or examples are provided in conjunction with the schema object,
70- /// the example MUST follow the prescribed serialization strategy for the parameter.
71- /// </summary>
63+ /// <inheritdoc/>
7264 public IDictionary < string , IOpenApiMediaType > ? Content { get ; set ; }
7365
7466 /// <inheritdoc/>
@@ -119,11 +111,11 @@ public virtual void SerializeAsV3(IOpenApiWriter writer)
119111 SerializeInternal ( writer , OpenApiSpecVersion . OpenApi3_0 , ( writer , element ) => element . SerializeAsV3 ( writer ) ) ;
120112 }
121113
122- internal void SerializeInternal ( IOpenApiWriter writer , OpenApiSpecVersion version ,
114+ internal void SerializeInternal ( IOpenApiWriter writer , OpenApiSpecVersion version ,
123115 Action < IOpenApiWriter , IOpenApiSerializable > callback )
124116 {
125117 Utils . CheckArgumentNull ( writer ) ;
126-
118+
127119 // Validate that Cookie style is only used in OpenAPI 3.2 and later
128120 if ( Style == ParameterStyle . Cookie && version < OpenApiSpecVersion . OpenApi3_2 )
129121 {
@@ -234,8 +226,7 @@ internal virtual void WriteRequestBodySchemaForV2(IOpenApiWriter writer, Diction
234226 // uniqueItems
235227 // enum
236228 // multipleOf
237- var targetSchema = Schema switch
238- {
229+ var targetSchema = Schema switch {
239230 OpenApiSchemaReference schemaReference => schemaReference . RecursiveTarget ,
240231 OpenApiSchema schema => schema ,
241232 _ => null ,
@@ -280,7 +271,7 @@ internal virtual void WriteRequestBodySchemaForV2(IOpenApiWriter writer, Diction
280271 public virtual void SerializeAsV2 ( IOpenApiWriter writer )
281272 {
282273 Utils . CheckArgumentNull ( writer ) ;
283-
274+
284275 // Validate that Cookie style is only used in OpenAPI 3.2 and later
285276 if ( Style == ParameterStyle . Cookie )
286277 {
0 commit comments