Skip to content

Converting date objects #51

@mudassarzahid

Description

@mudassarzahid

Is there a way to support datetime / date to Date conversions? Currently, they are converted to string.

  • Python input:
from datetime import date

class MyModel(BaseModel):
    start_date: date
  • TypeScript output:
export interface MyModel {
  start_date: string;  // should be Date
}

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