mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
f799f72697
Update OpenAPI schemas and operation descriptions for the strategies tag.
20 lines
506 B
TypeScript
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>;
|