1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00
unleash.unleash/src/lib/openapi/spec/name-schema.ts
Thomas Heartman f799f72697
openapi: strategies tag (#4116)
Update OpenAPI schemas and operation descriptions for the strategies
tag.
2023-07-04 14:21:09 +02:00

20 lines
506 B
TypeScript

import { FromSchema } from 'json-schema-to-ts';
export const nameSchema = {
$id: '#/components/schemas/nameSchema',
type: 'object',
additionalProperties: false,
required: ['name'],
description: 'An object with a name',
properties: {
name: {
description: 'The name of the represented object.',
example: 'betaUser',
type: 'string',
},
},
components: {},
} as const;
export type NameSchema = FromSchema<typeof nameSchema>;