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

37 lines
1.0 KiB
TypeScript
Raw Normal View History

import { FromSchema } from 'json-schema-to-ts';
export const feedbackSchema = {
$id: '#/components/schemas/feedbackSchema',
type: 'object',
additionalProperties: false,
2023-07-06 15:27:43 +02:00
description: 'User feedback information',
properties: {
userId: {
2023-07-06 15:27:43 +02:00
description: 'Identifier of the current user giving feedback',
type: 'integer',
example: 2,
},
feedbackId: {
2023-07-06 15:27:43 +02:00
description: 'The name of the feedback session',
type: 'string',
2023-07-06 15:27:43 +02:00
example: 'pnps',
},
neverShow: {
2023-07-06 15:27:43 +02:00
description:
'`true` when user opts-in to never show the feedback 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 FeedbackSchema = FromSchema<typeof feedbackSchema>;