microsoft / microsoft/TypeChat

Date type works but returns validate error

Open
#107 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
8.7k
Forks
414
Avg merge
3h 8m
Merged PRs (30d)
3

Description

With this interface

export interface DateTime {
    type: 'dateTime',
    dateTime?: Date;
};

The json results look good but validate fails:

JSON validation failed: Cannot find name 'Date'.
{
  "entities": [
    {
      "type": "dateTime",
      "dateTime": "2022-08-20T08:30:00.000Z"
    }
  ]
}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files or tests. Reproduce the shown DateTime interface and validation error first, then trace how the validator handles the Date type. Done means the example validates successfully while retaining the displayed JSON result.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
ai, backend-api-design
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.