@imgly/plugin-ai-generation-web
Version:
AI generation plugin for the CE.SDK editor
10 lines (9 loc) • 425 B
TypeScript
import { OpenAPIV3 } from 'openapi-types';
/**
* Checks if an unknown object is an OpenAPI schema (first level only)
*
* @param obj - The object to check (potentially undefined)
* @param debug - If true, log the reason when validation fails
* @returns A boolean indicating whether the object is an OpenAPI schema
*/
export declare function isOpenAPISchema(obj: unknown, debug?: boolean): obj is OpenAPIV3.SchemaObject;