UNPKG

@apistudio/apim-cli

Version:

CLI for API Management Products

40 lines (34 loc) 967 B
/** * Schema Specification Module * * This module exports types and interfaces for schema specifications. */ // Export types for OpenAPI specifications export interface OpenAPISpec { openapi: string; info: { title: string; version: string; }; paths: Record<string, any>; components?: { schemas?: Record<string, any>; }; } // Export types for gateway configuration export interface GatewayConfig { gatewayTypeName: string; supportedPolicySequences: string[]; stageSupportedPolicies: string[]; freeFlowSupportedPolicies: string[]; } // Export utility functions to load specifications export function loadOpenAPISpec(path: string): Promise<OpenAPISpec> { // Implementation would go here in a real module throw new Error('Not implemented'); } export function loadGatewayConfig(path: string): Promise<GatewayConfig> { // Implementation would go here in a real module throw new Error('Not implemented'); } // Made with Bob