1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-17 13:46:47 +02:00
unleash.unleash/src/lib/openapi/spec/splash-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

23 lines
765 B
TypeScript

import type { 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>;