UNPKG

@unleash/proxy

Version:
27 lines (23 loc) 742 B
import { type CreateSchemaType, createSchemaObject } from '../openapi-types'; export const schema = { type: 'object', properties: { appName: { type: 'string' }, environment: { type: 'string' }, userId: { type: 'string' }, sessionId: { type: 'string' }, remoteAddress: { type: 'string' }, properties: { type: 'object', additionalProperties: { type: 'string', }, example: { region: 'Africa', betaTester: 'true', }, }, }, } as const; export type UnleashContextSchema = CreateSchemaType<typeof schema>; export const unleashContextSchema = createSchemaObject(schema);