[BUG][C#][csharp-netcore] x-csharp-value-type doesn't help to generate nullable type
Created by: dstepanov25
Bug Report Checklist
-
Have you provided a full/minimal spec to reproduce the issue? -
Have you validated the input using an OpenAPI validator (example)? -
Have you tested with the latest master to confirm the issue still exists? -
Have you searched for related issues/PRs? -
What's the actual output vs expected output? -
[Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
I'm using 'x-csharp-value-type: true' to generate nullable DateTime but this doesn't works
openapi-generator version
docker image: openapitools/openapi-generator-cli:latest
OpenAPI declaration file content or url
https://gist.github.com/dstepanov25/91fc075149b832edb8c6131a70b527fc
Generation Details
- docker image pull openapitools/openapi-generator-cli:latest
- docker-compose up for this file https://gist.github.com/dstepanov25/8715114c57d9a7517f9a7647e231dc5e
As a result I'm receiving a project with such model: https://gist.github.com/dstepanov25/2194bad7e1d2ac6e06db5de060ee1466
I'm expecting to see
public DateTime? Timestamp { get; set; }
to avoid msbuild warnings
Steps to reproduce
Related issues/PRs
https://github.com/OpenAPITools/openapi-generator/issues/3693