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.

7 lines (6 loc) 271 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._isFormatJsonPointer = void 0; const _isFormatJsonPointer = (str) => PATTERN.test(str); exports._isFormatJsonPointer = _isFormatJsonPointer; const PATTERN = /^(?:\/(?:[^~/]|~0|~1)*)*$/;