@@ -227,15 +227,6 @@ public class OpenApiSchema : IOpenApiExtensible, IOpenApiReferenceable, IOpenApi
227
227
/// </summary>
228
228
public IDictionary < string , OpenApiSchema > Properties { get ; set ; } = new Dictionary < string , OpenApiSchema > ( ) ;
229
229
230
- /// <summary>
231
- /// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00
232
- /// PatternProperty definitions MUST be a Schema Object and not a standard JSON Schema (inline or referenced)
233
- /// Each property name of this object SHOULD be a valid regular expression according to the ECMA 262 r
234
- /// egular expression dialect. Each property value of this object MUST be an object, and each object MUST
235
- /// be a valid Schema Object not a standard JSON Schema.
236
- /// </summary>
237
- public IDictionary < string , OpenApiSchema > PatternProperties { get ; set ; } = new Dictionary < string , OpenApiSchema > ( ) ;
238
-
239
230
/// <summary>
240
231
/// Follow JSON Schema definition: https://tools.ietf.org/html/draft-fge-json-schema-validation-00
241
232
/// </summary>
@@ -372,12 +363,11 @@ public OpenApiSchema(OpenApiSchema schema)
372
363
MinItems = schema ? . MinItems ?? MinItems ;
373
364
UniqueItems = schema ? . UniqueItems ?? UniqueItems ;
374
365
Properties = schema ? . Properties != null ? new Dictionary < string , OpenApiSchema > ( schema . Properties ) : null ;
375
- PatternProperties = schema ? . PatternProperties != null ? new Dictionary < string , OpenApiSchema > ( schema . PatternProperties ) : null ;
376
366
MaxProperties = schema ? . MaxProperties ?? MaxProperties ;
377
367
MinProperties = schema ? . MinProperties ?? MinProperties ;
378
368
AdditionalPropertiesAllowed = schema ? . AdditionalPropertiesAllowed ?? AdditionalPropertiesAllowed ;
379
369
AdditionalProperties = schema ? . AdditionalProperties != null ? new ( schema ? . AdditionalProperties ) : null ;
380
- Discriminator = schema ? . Discriminator != null ? new ( schema ? . Discriminator ) : null ;
370
+ Discriminator = schema ? . Discriminator != null ? new ( schema ? . Discriminator ) : null ;
381
371
Example = schema ? . Example != null ? new ( schema ? . Example . Node ) : null ;
382
372
Examples = schema ? . Examples != null ? new List < JsonNode > ( schema . Examples ) : null ;
383
373
Enum = schema ? . Enum != null ? new List < JsonNode > ( schema . Enum ) : null ;
@@ -606,7 +596,6 @@ internal void WriteV31Properties(IOpenApiWriter writer)
606
596
writer . WriteProperty ( OpenApiConstants . V31ExclusiveMinimum , V31ExclusiveMinimum ) ;
607
597
writer . WriteProperty ( OpenApiConstants . UnevaluatedProperties , UnevaluatedProperties , false ) ;
608
598
writer . WriteOptionalCollection ( OpenApiConstants . Examples , Examples , ( nodeWriter , s ) => nodeWriter . WriteAny ( new OpenApiAny ( s ) ) ) ;
609
- writer . WriteOptionalMap ( OpenApiConstants . PatternProperties , PatternProperties , ( w , s ) => s . SerializeAsV31 ( w ) ) ;
610
599
}
611
600
612
601
/// <summary>
0 commit comments