unleash-server
Version:
Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.
21 lines • 1.08 kB
TypeScript
import type { OpenAPIV3 } from 'openapi-types';
import type { IServerOption } from '../types/index.js';
export type SchemaId = (typeof schemas)[keyof typeof schemas]['$id'];
export type SchemaRef = (typeof schemas)[keyof typeof schemas]['components'];
export interface JsonSchemaProps {
$id: string;
components: object;
}
type SchemaWithMandatoryFields = Partial<Omit<OpenAPIV3.ReferenceObject | OpenAPIV3.SchemaObject, '$id' | 'components'>> & JsonSchemaProps;
interface UnleashSchemas {
[name: string]: SchemaWithMandatoryFields;
}
interface OpenAPIV3DocumentWithServers extends OpenAPIV3.Document {
servers: OpenAPIV3.ServerObject[];
}
export declare const schemas: UnleashSchemas;
export declare const removeJsonSchemaProps: <T extends JsonSchemaProps>(schema: T) => OpenAPIV3.SchemaObject;
export declare const createOpenApiSchema: ({ unleashUrl, baseUriPath, }: Pick<IServerOption, "unleashUrl" | "baseUriPath">) => Omit<OpenAPIV3DocumentWithServers, "paths">;
export * from './util/index.js';
export * from './spec/index.js';
//# sourceMappingURL=index.d.ts.map