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-response-schema.ts

37 lines
1.1 KiB
TypeScript
Raw Normal View History

import { FromSchema } from 'json-schema-to-ts';
export const feedbackResponseSchema = {
$id: '#/components/schemas/feedbackResponseSchema',
additionalProperties: false,
type: 'object',
description: 'User feedback information about a particular feedback item.',
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',
},
feedbackId: {
description: 'The name of the feedback session',
type: 'string',
example: 'pnps',
},
},
components: {},
} as const;
export type FeedbackResponseSchema = FromSchema<typeof feedbackResponseSchema>;