Skip to content

Generation of nullable required property #39

@christoph-feb22

Description

@christoph-feb22

Hi Zaid,

I have an API definition which contains a model with an required property with the datatype nullable string.
Hawaii generates the type as string. I expect it to be a string option.

required = parameter.Required || not nullable

As I understand it correct, this line is responsible if a type is optional or not.
Maybe the following replacement is an option?

parameter.Required && not nullable

Maybe there is an reason for only checking the required property?

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions