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

27 lines
600 B
TypeScript
Raw Normal View History

import { FromSchema } from 'json-schema-to-ts';
export const feedbackSchema = {
$id: '#/components/schemas/feedbackSchema',
type: 'object',
additionalProperties: false,
properties: {
userId: {
type: 'number',
},
feedbackId: {
type: 'string',
},
neverShow: {
type: 'boolean',
},
given: {
type: 'string',
format: 'date-time',
nullable: true,
},
},
components: {},
} as const;
export type FeedbackSchema = FromSchema<typeof feedbackSchema>;