1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-11-01 19:07:38 +01:00
unleash.unleash/src/lib/openapi/spec/date-schema.ts
andreas-unleash a607dea284
OAS for client-api metrics.ts (#1753)
* OAS for client-api metrics.ts

* Fix PR comments

* Fix PR comments

* Fix test

* Renamed and synced with proxy

* Renamed and synced with proxy

* Renamed and synced with proxy

* add tests

* Update python.md

Revert doc

* added 400 response, more tests

* PR comment

* PR comment
2022-06-30 13:27:12 +03:00

10 lines
284 B
TypeScript

import { FromSchema } from 'json-schema-to-ts';
export const dateSchema = {
$id: '#/components/schemas/dateSchema',
oneOf: [{ type: 'string', format: 'date-time' }, { type: 'number' }],
components: {},
} as const;
export type DateSchema = FromSchema<typeof dateSchema>;