Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy Generator: A question mark is needed at the end of nullable string type and typeSimple #5278

Closed
armanozak opened this issue Sep 3, 2020 · 1 comment

Comments

@armanozak
Copy link
Contributor

No description provided.

@hikalkan
Copy link
Member

hikalkan commented Nov 3, 2020

I added isRequired for the type properties. Making string? is not true for c# types (there is no nullable string in c# on runtime).

"MyCompanyName.MyProjectName.BookListFilterDto": {
    "baseType": null,
    "isEnum": false,
    "enumNames": null,
    "enumValues": null,
    "genericArguments": null,
    "properties": [{
        "name": "RequiredStr",
        "type": "System.String",
        "typeSimple": "string",
        "isRequired": true
    }, {
        "name": "NonRequiredStr",
        "type": "System.String",
        "typeSimple": "string",
        "isRequired": false
    }]
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants