Skip to content

date format instead of date-time #148

@flcdrg

Description

@flcdrg

Is there a way to make types of System.DateTime be represented as OpenAPI format 'date' (rather than 'date-time')?

I note that there are DateTimeObjectTypeVisitor and DateTimeTypeVisitor classes in Microsoft.Azure.WebJobs.Extensions.OpenApi.Core but I'm not sure whether I can override or replace those implementations.

eg.

public System.DateTime DeliveryDate { get; set; }

would be converted to

DeliveryDate:
  type: string
  format: date

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions