@@ -73,12 +73,12 @@ public class OpenApiSchema : IOpenApiExtensible, IOpenApiReferenceable, IOpenApi
7373 /// <summary>
7474 /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00
7575 /// </summary>
76- public decimal V31ExclusiveMaximum { get ; set ; }
76+ public decimal ? V31ExclusiveMaximum { get ; set ; }
7777
7878 /// <summary>
7979 /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00
8080 /// </summary>
81- public decimal V31ExclusiveMinimum { get ; set ; }
81+ public decimal ? V31ExclusiveMinimum { get ; set ; }
8282
8383 /// <summary>
8484 ///
@@ -593,9 +593,8 @@ public void SerializeAsV2(IOpenApiWriter writer)
593593
594594 internal void WriteV31Properties ( IOpenApiWriter writer )
595595 {
596- writer . WriteProperty ( OpenApiConstants . DollarSchema , Schema ) ;
597- writer . WriteOptionalCollection ( OpenApiConstants . Type , TypeArray , ( w , s ) => w . WriteRaw ( s ) ) ;
598596 writer . WriteProperty ( OpenApiConstants . Id , Id ) ;
597+ writer . WriteProperty ( OpenApiConstants . DollarSchema , Schema ) ;
599598 writer . WriteProperty ( OpenApiConstants . Comment , Comment ) ;
600599 writer . WriteProperty ( OpenApiConstants . Vocabulary , Vocabulary ) ;
601600 writer . WriteOptionalMap ( OpenApiConstants . Defs , Definitions , ( w , s ) => s . SerializeAsV3 ( w ) ) ;
@@ -604,8 +603,8 @@ internal void WriteV31Properties(IOpenApiWriter writer)
604603 writer . WriteProperty ( OpenApiConstants . RecursiveAnchor , RecursiveAnchor ) ;
605604 writer . WriteProperty ( OpenApiConstants . RecursiveRef , RecursiveRef ) ;
606605 writer . WriteProperty ( OpenApiConstants . V31ExclusiveMaximum , V31ExclusiveMaximum ) ;
607- writer . WriteProperty ( OpenApiConstants . V31ExclusiveMinimum , V31ExclusiveMinimum ) ;
608- writer . WriteProperty ( OpenApiConstants . UnevaluatedProperties , UnevaluatedProperties ) ;
606+ writer . WriteProperty ( OpenApiConstants . V31ExclusiveMinimum , V31ExclusiveMinimum ) ;
607+ writer . WriteProperty ( OpenApiConstants . UnevaluatedProperties , UnevaluatedProperties , false ) ;
609608 }
610609
611610 /// <summary>
0 commit comments