← Back to Skills Marketplace
mirni

Datagate

by mirni · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
104
Downloads
0
Stars
0
Active Installs
3
Versions
Install in OpenClaw
/install datagate
Description
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...
README (SKILL.md)

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.

Usage Guidance
This skill is internally consistent and implements a local JSON Schema validation API. Before installing: run it inside a controlled environment (virtualenv/container) so pip installs don't affect system packages; be aware running the server binds a network port — bind to localhost or firewall it if you don't want external access; vet PyPI package sources per your org policy; and avoid exposing the endpoint to untrusted clients because malicious or deeply recursive schemas/payloads could cause high CPU/memory use (denial-of-service risk).
Capability Analysis
Type: OpenClaw Skill Name: datagate Version: 1.0.0 The 'datagate' skill bundle is a legitimate utility for validating JSON payloads against JSON Schemas using FastAPI and the jsonschema library. The implementation in datagate/app.py and datagate/models.py is straightforward, follows best practices, and contains no evidence of malicious intent, data exfiltration, or suspicious execution patterns.
Capability Assessment
Purpose & Capability
Name/description match the code and runtime instructions. Required binary (python) and listed Python packages (fastapi, uvicorn, pydantic, jsonschema) are appropriate for a small validation HTTP service.
Instruction Scope
SKILL.md instructs running a local uvicorn server and shows a single POST /v1/validate endpoint. The instructions do not read unrelated files, env vars, or send data to other endpoints.
Install Mechanism
Install spec indicates Python packages (PyPI-style). This is a standard, expected install method for a Python FastAPI app; no downloads from arbitrary URLs or extraction of remote archives were found.
Credentials
The skill declares no required environment variables or credentials and the code does not access secrets or external configs. Required dependencies are limited to those needed for the service.
Persistence & Privilege
always:false and no special privileges requested. The skill runs as a normal local HTTP service and does not attempt to modify other skills or system-wide settings.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install datagate
  3. After installation, invoke the skill by name or use /datagate
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Updated documentation for clarity and usability: simplified usage, enhanced descriptions, and improved example responses. - Metadata field revised to add emoji and update install instructions format. - Outlined handling of invalid schemas with clear error responses. - Clarified language-agnostic use cases and stated that agents of any runtime can access validation. - Removed explicit version references and streamlined installation steps.
v0.1.1
- Added installation instructions and metadata, including dependencies and openclaw requirements. - Updated usage section with local server startup instructions and revised curl example to use localhost. - Incremented version to 0.1.1.
v0.1.0
Initial release of DataGate. - Validate JSON payloads against JSON Schema (Draft 2020-12) - Returns detailed error reports with error paths and messages - Stateless API suitable for agent pipelines - Usable as both a hosted API and a standalone FastAPI app - Language-agnostic design for easy integration with any runtime
Metadata
Slug datagate
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 3
Frequently Asked Questions

What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 104 downloads so far.

How do I install Datagate?

Run "/install datagate" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Datagate free?

Yes, Datagate is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Datagate support?

Datagate is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Datagate?

It is built and maintained by mirni (@mirni); the current version is v1.0.0.

💬 Comments