1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-06 00:07:44 +01:00
unleash.unleash/src/lib/openapi/spec/feedback-update-schema.ts

31 lines
942 B
TypeScript
Raw Normal View History

import { FromSchema } from 'json-schema-to-ts';
export const feedbackUpdateSchema = {
$id: '#/components/schemas/feedbackUpdateSchema',
type: 'object',
description: 'User feedback information to be updated.',
properties: {
userId: {
description: 'The ID of the user that gave the feedback.',
2023-07-06 15:27:43 +02:00
type: 'integer',
example: 2,
},
neverShow: {
2023-07-06 15:27:43 +02:00
description:
'`true` if the user has asked never to see this feedback questionnaire again.',
type: 'boolean',
2023-07-06 15:27:43 +02:00
example: false,
},
given: {
2023-07-06 15:27:43 +02:00
description: 'When this feedback was given',
type: 'string',
format: 'date-time',
nullable: true,
2023-07-06 15:27:43 +02:00
example: '2023-07-06T08:29:21.282Z',
},
},
components: {},
} as const;
export type FeedbackUpdateSchema = FromSchema<typeof feedbackUpdateSchema>;