@@ -73,12 +73,12 @@ public class OpenApiSchema : IOpenApiExtensible, IOpenApiReferenceable, IOpenApi
73
73
/// <summary>
74
74
/// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00
75
75
/// </summary>
76
- public decimal V31ExclusiveMaximum { get ; set ; }
76
+ public decimal ? V31ExclusiveMaximum { get ; set ; }
77
77
78
78
/// <summary>
79
79
/// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00
80
80
/// </summary>
81
- public decimal V31ExclusiveMinimum { get ; set ; }
81
+ public decimal ? V31ExclusiveMinimum { get ; set ; }
82
82
83
83
/// <summary>
84
84
///
@@ -593,9 +593,8 @@ public void SerializeAsV2(IOpenApiWriter writer)
593
593
594
594
internal void WriteV31Properties ( IOpenApiWriter writer )
595
595
{
596
- writer . WriteProperty ( OpenApiConstants . DollarSchema , Schema ) ;
597
- writer . WriteOptionalCollection ( OpenApiConstants . Type , TypeArray , ( w , s ) => w . WriteRaw ( s ) ) ;
598
596
writer . WriteProperty ( OpenApiConstants . Id , Id ) ;
597
+ writer . WriteProperty ( OpenApiConstants . DollarSchema , Schema ) ;
599
598
writer . WriteProperty ( OpenApiConstants . Comment , Comment ) ;
600
599
writer . WriteProperty ( OpenApiConstants . Vocabulary , Vocabulary ) ;
601
600
writer . WriteOptionalMap ( OpenApiConstants . Defs , Definitions , ( w , s ) => s . SerializeAsV3 ( w ) ) ;
@@ -604,8 +603,8 @@ internal void WriteV31Properties(IOpenApiWriter writer)
604
603
writer . WriteProperty ( OpenApiConstants . RecursiveAnchor , RecursiveAnchor ) ;
605
604
writer . WriteProperty ( OpenApiConstants . RecursiveRef , RecursiveRef ) ;
606
605
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 ) ;
609
608
}
610
609
611
610
/// <summary>
0 commit comments