1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-12 13:48:35 +02:00
unleash.unleash/src/lib/openapi/spec/feedback-response-schema.ts
Christopher Kolstad 53354224fc
chore: Bump biome and configure husky (#6589)
Upgrades biome to 1.6.1, and updates husky pre-commit hook.

Most changes here are making type imports explicit.
2024-03-18 13:58:05 +01:00

37 lines
1.1 KiB
TypeScript

import type { 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.',
type: 'integer',
example: 2,
},
neverShow: {
description:
'`true` if the user has asked never to see this feedback questionnaire again.',
type: 'boolean',
example: false,
},
given: {
description: 'When this feedback was given',
type: 'string',
format: 'date-time',
nullable: true,
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>;