@@ -65,18 +65,19 @@ public OpenApiHeader() { }
65
65
/// </summary>
66
66
internal OpenApiHeader ( IOpenApiHeader header )
67
67
{
68
- Description = header ? . Description ?? Description ;
69
- Required = header ? . Required ?? Required ;
70
- Deprecated = header ? . Deprecated ?? Deprecated ;
71
- AllowEmptyValue = header ? . AllowEmptyValue ?? AllowEmptyValue ;
72
- Style = header ? . Style ?? Style ;
73
- Explode = header ? . Explode ?? Explode ;
74
- AllowReserved = header ? . AllowReserved ?? AllowReserved ;
75
- Schema = header ? . Schema ? . CreateShallowCopy ( ) ;
76
- Example = header ? . Example != null ? JsonNodeCloneHelper . Clone ( header . Example ) : null ;
77
- Examples = header ? . Examples != null ? new Dictionary < string , IOpenApiExample > ( header . Examples ) : null ;
78
- Content = header ? . Content != null ? new Dictionary < string , OpenApiMediaType > ( header . Content ) : null ;
79
- Extensions = header ? . Extensions != null ? new Dictionary < string , IOpenApiExtension > ( header . Extensions ) : null ;
68
+ Utils . CheckArgumentNull ( header ) ;
69
+ Description = header . Description ?? Description ;
70
+ Required = header . Required ;
71
+ Deprecated = header . Deprecated ;
72
+ AllowEmptyValue = header . AllowEmptyValue ;
73
+ Style = header . Style ?? Style ;
74
+ Explode = header . Explode ;
75
+ AllowReserved = header . AllowReserved ;
76
+ Schema = header . Schema . CreateShallowCopy ( ) ;
77
+ Example = header . Example != null ? JsonNodeCloneHelper . Clone ( header . Example ) : null ;
78
+ Examples = header . Examples != null ? new Dictionary < string , IOpenApiExample > ( header . Examples ) : null ;
79
+ Content = header . Content != null ? new Dictionary < string , OpenApiMediaType > ( header . Content ) : null ;
80
+ Extensions = header . Extensions != null ? new Dictionary < string , IOpenApiExtension > ( header . Extensions ) : null ;
80
81
}
81
82
82
83
/// <summary>
0 commit comments