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/pat-schema.ts

35 lines
747 B
TypeScript
Raw Normal View History

import { FromSchema } from 'json-schema-to-ts';
export const patSchema = {
$id: '#/components/schemas/patSchema',
type: 'object',
properties: {
id: {
type: 'number',
},
secret: {
type: 'string',
},
expiresAt: {
type: 'string',
format: 'date-time',
nullable: true,
},
createdAt: {
type: 'string',
format: 'date-time',
nullable: true,
},
seenAt: {
type: 'string',
format: 'date-time',
nullable: true,
},
},
components: {
schemas: {},
},
} as const;
export type PatSchema = FromSchema<typeof patSchema>;