mirror of
https://github.com/Unleash/unleash.git
synced 2024-11-01 19:07:38 +01:00
22 lines
496 B
TypeScript
22 lines
496 B
TypeScript
|
import { createSchemaObject, CreateSchemaType } from '../types';
|
||
|
|
||
|
export const schema = {
|
||
|
type: 'object',
|
||
|
required: ['contextName', 'values'],
|
||
|
properties: {
|
||
|
contextName: {
|
||
|
type: 'string',
|
||
|
},
|
||
|
values: {
|
||
|
type: 'array',
|
||
|
items: {
|
||
|
type: 'string',
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
} as const;
|
||
|
|
||
|
export type OverrideSchema = CreateSchemaType<typeof schema>;
|
||
|
|
||
|
export const overrideSchema = createSchemaObject(schema);
|