1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-04-10 01:16:39 +02:00
unleash.unleash/src/lib/openapi/spec/feedback-create-schema.ts
Thomas Heartman 8f5bda6b8a
openapi: document operations for admin ui feedback (#4226)
This PR updates the endpoint documentation and schemas related to Admin
UI feedback.
2023-07-13 13:27:52 +02:00

25 lines
768 B
TypeScript

import { FromSchema } from 'json-schema-to-ts';
export const feedbackCreateSchema = {
$id: '#/components/schemas/feedbackCreateSchema',
required: ['feedbackId'],
type: 'object',
description: 'User feedback information to be created.',
properties: {
neverShow: {
description:
'`true` if the user has asked never to see this feedback questionnaire again. Defaults to `false`.',
type: 'boolean',
example: false,
},
feedbackId: {
description: 'The name of the feedback session',
type: 'string',
example: 'pnps',
},
},
components: {},
} as const;
export type FeedbackCreateSchema = FromSchema<typeof feedbackCreateSchema>;