@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.
1 lines • 549 B
Source Map (JSON)
{"version":3,"file":"_isFormatUriTemplate.mjs","sources":["../../src/functional/_isFormatUriTemplate.ts"],"sourcesContent":["export const _isFormatUriTemplate = (str: string): boolean => PATTERN.test(str);\n\nconst PATTERN =\n /^(?:(?:[^\\x00-\\x20\"'<>%\\\\^`{|}]|%[0-9a-f]{2})|\\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\\*)?)*\\})*$/i;\n"],"names":["_isFormatUriTemplate","str","PATTERN","test"],"mappings":"AAAO,MAAMA,uBAAwBC,OAAyBC,QAAQC,KAAKF;;AAE3E,MAAMC,UACJ;;"}