@@ -255,43 +255,43 @@ public void SerializeV2WithoutReference(IAsyncApiWriter writer)
255255 writer . WriteOptionalProperty ( AsyncApiConstants . Title , this . Title ) ;
256256
257257 // multipleOf
258- writer . WriteProperty ( AsyncApiConstants . MultipleOf , this . MultipleOf ) ;
258+ writer . WriteOptionalProperty ( AsyncApiConstants . MultipleOf , this . MultipleOf ) ;
259259
260260 // maximum
261- writer . WriteProperty ( AsyncApiConstants . Maximum , this . Maximum ) ;
261+ writer . WriteOptionalProperty ( AsyncApiConstants . Maximum , this . Maximum ) ;
262262
263263 // exclusiveMaximum
264- writer . WriteProperty ( AsyncApiConstants . ExclusiveMaximum , this . ExclusiveMaximum ) ;
264+ writer . WriteOptionalProperty ( AsyncApiConstants . ExclusiveMaximum , this . ExclusiveMaximum ) ;
265265
266266 // minimum
267- writer . WriteProperty ( AsyncApiConstants . Minimum , this . Minimum ) ;
267+ writer . WriteOptionalProperty ( AsyncApiConstants . Minimum , this . Minimum ) ;
268268
269269 // exclusiveMinimum
270- writer . WriteProperty ( AsyncApiConstants . ExclusiveMinimum , this . ExclusiveMinimum ) ;
270+ writer . WriteOptionalProperty ( AsyncApiConstants . ExclusiveMinimum , this . ExclusiveMinimum ) ;
271271
272272 // maxLength
273- writer . WriteProperty ( AsyncApiConstants . MaxLength , this . MaxLength ) ;
273+ writer . WriteOptionalProperty ( AsyncApiConstants . MaxLength , this . MaxLength ) ;
274274
275275 // minLength
276- writer . WriteProperty ( AsyncApiConstants . MinLength , this . MinLength ) ;
276+ writer . WriteOptionalProperty ( AsyncApiConstants . MinLength , this . MinLength ) ;
277277
278278 // pattern
279279 writer . WriteOptionalProperty ( AsyncApiConstants . Pattern , this . Pattern ) ;
280280
281281 // maxItems
282- writer . WriteProperty ( AsyncApiConstants . MaxItems , this . MaxItems ) ;
282+ writer . WriteOptionalProperty ( AsyncApiConstants . MaxItems , this . MaxItems ) ;
283283
284284 // minItems
285- writer . WriteProperty ( AsyncApiConstants . MinItems , this . MinItems ) ;
285+ writer . WriteOptionalProperty ( AsyncApiConstants . MinItems , this . MinItems ) ;
286286
287287 // uniqueItems
288- writer . WriteProperty ( AsyncApiConstants . UniqueItems , this . UniqueItems ) ;
288+ writer . WriteOptionalProperty ( AsyncApiConstants . UniqueItems , this . UniqueItems ) ;
289289
290290 // maxProperties
291- writer . WriteProperty ( AsyncApiConstants . MaxProperties , this . MaxProperties ) ;
291+ writer . WriteOptionalProperty ( AsyncApiConstants . MaxProperties , this . MaxProperties ) ;
292292
293293 // minProperties
294- writer . WriteProperty ( AsyncApiConstants . MinProperties , this . MinProperties ) ;
294+ writer . WriteOptionalProperty ( AsyncApiConstants . MinProperties , this . MinProperties ) ;
295295
296296 // required
297297 writer . WriteOptionalCollection ( AsyncApiConstants . Required , this . Required , ( w , s ) => w . WriteValue ( s ) ) ;
@@ -357,16 +357,16 @@ public void SerializeV2WithoutReference(IAsyncApiWriter writer)
357357 writer . WriteOptionalObject ( AsyncApiConstants . Default , this . Default , ( w , d ) => w . WriteAny ( d ) ) ;
358358
359359 // nullable
360- writer . WriteProperty ( AsyncApiConstants . Nullable , this . Nullable , false ) ;
360+ writer . WriteOptionalProperty ( AsyncApiConstants . Nullable , this . Nullable , false ) ;
361361
362362 // discriminator
363363 writer . WriteOptionalProperty ( AsyncApiConstants . Discriminator , this . Discriminator ) ;
364364
365365 // readOnly
366- writer . WriteProperty ( AsyncApiConstants . ReadOnly , this . ReadOnly , false ) ;
366+ writer . WriteOptionalProperty ( AsyncApiConstants . ReadOnly , this . ReadOnly , false ) ;
367367
368368 // writeOnly
369- writer . WriteProperty ( AsyncApiConstants . WriteOnly , this . WriteOnly , false ) ;
369+ writer . WriteOptionalProperty ( AsyncApiConstants . WriteOnly , this . WriteOnly , false ) ;
370370
371371 // externalDocs
372372 writer . WriteOptionalObject ( AsyncApiConstants . ExternalDocs , this . ExternalDocs , ( w , s ) => s . SerializeV2 ( w ) ) ;
@@ -375,7 +375,7 @@ public void SerializeV2WithoutReference(IAsyncApiWriter writer)
375375 writer . WriteOptionalCollection ( AsyncApiConstants . Examples , this . Examples , ( w , e ) => w . WriteAny ( e ) ) ;
376376
377377 // deprecated
378- writer . WriteProperty ( AsyncApiConstants . Deprecated , this . Deprecated , false ) ;
378+ writer . WriteOptionalProperty ( AsyncApiConstants . Deprecated , this . Deprecated , false ) ;
379379
380380 // extensions
381381 writer . WriteExtensions ( this . Extensions , AsyncApiVersion . AsyncApi2_3_0 ) ;
0 commit comments