@@ -65,18 +65,19 @@ public OpenApiHeader() { }
6565        /// </summary> 
6666        internal  OpenApiHeader ( IOpenApiHeader  header ) 
6767        { 
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 ; 
8081        } 
8182
8283        /// <summary> 
0 commit comments