UNPKG

@samchon/openapi

Version:

Universal OpenAPI to LLM function calling schemas. Transform any Swagger/OpenAPI document into type-safe schemas for OpenAI, Claude, Qwen, and more.

14 lines (13 loc) 295 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._isFormatRegex = void 0; const _isFormatRegex = (str) => { try { new RegExp(str); return true; } catch (_a) { return false; } }; exports._isFormatRegex = _isFormatRegex;