Skip to content

Remove special case Date code #1

@maxholman

Description

@maxholman
const type =
    schemaObject.type === 'string' && schemaObject.format?.includes('date')
      ? 'Date'
      : schemaObject.type?.toString() || 'never';

It's very specific and opinionated, and too closely coupled with specifics of the fetcher in @block65/rest-client

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions