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 (4 loc) 221 B
const _isFormatDuration = str => PATTERN.test(str); const PATTERN = /^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/; export { _isFormatDuration }; //# sourceMappingURL=_isFormatDuration.mjs.map