1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-11 00:08:30 +01:00
unleash.unleash/src/lib/openapi/spec/override-schema.ts

23 lines
531 B
TypeScript
Raw Normal View History

import { FromSchema } from 'json-schema-to-ts';
export const overrideSchema = {
$id: '#/components/schemas/overrideSchema',
type: 'object',
additionalProperties: false,
required: ['contextName', 'values'],
properties: {
contextName: {
type: 'string',
},
values: {
type: 'array',
items: {
type: 'string',
},
},
},
components: {},
} as const;
export type OverrideSchema = FromSchema<typeof overrideSchema>;