will render, if classStyle is set to Record and generateNullableReferenceTypes is true, a constructor like:
public MyType(DateOnly inputDate, string[]? ids)
{
...
}
The ids parameter is correct to be nullable, but it should not be required for the caller to provide the value given that it's marked as non-required in the spec. The parameter should be string[]? ids = null.
Eg. a request body schema of:
will render, if
classStyle
is set toRecord
andgenerateNullableReferenceTypes
istrue
, a constructor like:The
ids
parameter is correct to be nullable, but it should not be required for the caller to provide the value given that it's marked as non-required in the spec. The parameter should bestring[]? ids = null
.