← 返回
未分类 中文

Datagate

Validate JSON data against a JSON Schema (Draft 2020-12). Post a schema and payload, get back whether it's valid plus detailed error paths and messages for e...
根据 JSON Schema (Draft 2020-12) 验证 JSON 数据。提交模式与载荷,返回是否有效并附带详细错误路径和错误信息。
mirni mirni 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 383
下载
💾 0
安装
1
版本
#latest

概述

DataGate

Validate any JSON payload against a JSON Schema.

Start the server

uvicorn datagate.app:app --port 8004

Validate data

curl -s -X POST http://localhost:8004/v1/validate \
  -H "Content-Type: application/json" \
  -d '{
    "json_schema": {
      "type": "object",
      "properties": {"name": {"type": "string"}, "age": {"type": "integer", "minimum": 0}},
      "required": ["name", "age"]
    },
    "payload": {"name": "Alice", "age": 30}
  }' | jq

Returns valid (true/false), error_count, and errors (each with path pointing to the exact field and message explaining the violation).

Handles invalid schemas too

If you send a broken schema, DataGate catches it and returns an error pointing to $schema with a clear message. No crashes.

Use case

Agents passing data between services can validate payloads before sending. Non-Python agents get Pydantic-grade validation via a simple API call.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 08:59 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 198 📥 68,255
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 686 📥 331,223
ai-agent

Agent Threat Intelligence Exchange

mirni
代理威胁情报交换:构建代理间威胁情报市场,实现STIX/TAXII订阅源列表、付费墙限制的IOC访问及信誉验证...
★ 0 📥 644