1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-04-06 01:15:28 +02:00
unleash.unleash/src/lib/openapi/spec/splash-response-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

23 lines
760 B
TypeScript

import { FromSchema } from 'json-schema-to-ts';
import { splashRequestSchema } from './splash-request-schema';
export const splashResponseSchema = {
...splashRequestSchema,
$id: '#/components/schemas/splashResponseSchema',
additionalProperties: false,
description: 'Data related to a user having seen a splash screen.',
required: [...splashRequestSchema.required, 'seen'],
properties: {
...splashRequestSchema.properties,
seen: {
type: 'boolean',
description:
'Indicates whether the user has seen the splash screen or not.',
example: true,
},
},
components: {},
} as const;
export type SplashResponseSchema = FromSchema<typeof splashResponseSchema>;