Skip to content

[C#] Support for format date-time-local to generate type DateTime #7942

Description

Is your feature request related to a problem? Please describe the problem.

Currently when an OpenAPI spec specifies a property with the format date-time-local
e.g.

"properties": {
    "foo": {
        "type": "string",
        "format": "date-time-local"
    }
}

It will generate a property with type string:

public string Foo { get; set; }

Client library/SDK language

Csharp

Describe the solution you'd like

Generate the property to type DateTime:

public string DateTime { get; set; }

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    CsharpPull requests that update .net codestatus:waiting-for-triageAn issue that is yet to be reviewed or assignedtype:featureNew experience request

    Type

    No type

    Projects

    Status
    Needs Triage 🔍

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions