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/splash-request-schema.ts
Thomas Heartman a785465943
openapi: update the splash endpoints and schemas for splash (#4227)
This change updates the splash endpoints and related schemas for the
admin ui tag.
2023-07-13 08:29:54 +00:00

24 lines
737 B
TypeScript

import { FromSchema } from 'json-schema-to-ts';
export const splashRequestSchema = {
$id: '#/components/schemas/splashRequestSchema',
type: 'object',
description: 'Data related to a user having seen a splash screen.',
required: ['userId', 'splashId'],
properties: {
userId: {
type: 'integer',
description: 'The ID of the user that was shown the splash screen.',
example: 1,
},
splashId: {
type: 'string',
description: 'The ID of the splash screen that was shown.',
example: 'new-splash-screen',
},
},
components: {},
} as const;
export type SplashRequestSchema = FromSchema<typeof splashRequestSchema>;