We have case where in specification field of model marked by required and also have nullable: true mark. in this case we should generate optional field, without default value. if required but not have nullable, or nullable: false - field should be generated as not optional.
We have case where in specification field of model marked by
required
and also havenullable: true
mark. in this case we should generate optional field, without default value. ifrequired
but not havenullable
, ornullable: false
- field should be generated as not optional.