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) 267 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports._isFormatDate = void 0; const _isFormatDate = (str) => FORMAT.test(str); exports._isFormatDate = _isFormatDate; const FORMAT = /^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/;