microsoft / microsoft/TypeChat
Date type works but returns validate error
Open
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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