"use strict";
/**
 * Project Caffeine v0.0.3
 * Copyright (c) 2025-2026 Gitconomy Research
 *
 * SPDX-License-Identifier: MIT
 *
 * Contributors:
 * - 郭晧 <guohao@gitconomy.org> (Initial Author)
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.literatureSchema = void 0;
const zod_1 = require("zod");
/**
 * 文献标准化 JSON 的 Zod 模型
 */
exports.literatureSchema = zod_1.z.object({
    title: zod_1.z.string().min(1, '标题不能为空'),
    authors: zod_1.z.array(zod_1.z.string()).min(1, '作者列表不能为空'),
    abstract: zod_1.z.string().optional(),
    link: zod_1.z.string().url('链接格式不正确').optional(),
    publication_year: zod_1.z.number().int().min(1900).optional(),
    citation_count: zod_1.z.number().int().min(0).optional(),
    source: zod_1.z.string().min(1, '来源不能为空'),
    doi: zod_1.z.string().optional(),
    keywords: zod_1.z.array(zod_1.z.string()).optional(),
});
//# sourceMappingURL=literatureSchema.js.map