JSON / CSV Sample to ODCS v3.1 & DataContractGate YAML Generator

Load a sample payload or paste your own. The page infers field types, required flags, enum candidates, numeric bounds, and patterns for UUIDs, emails, and ISO timestamps, then flags likely PII. Toggle what you want to keep, test one event against those constraints, and copy the contract.

Inference stays in your browser. Samples and pasted rows are not uploaded. Treat the YAML as a draft: review it, then deploy a stable version before it gates traffic. AISchemaGate can reuse the same DataContractGate YAML on LLM output through POST /egress.

Waiting for a sample

Turn constraints on or off. PII actions are mask, hash, or drop, and they apply to string fields. Mask uses the opaque style (****).


        

ODCS output is apiVersion: v3.1.0 and kind: DataContract. Enums are library invalidValues rules, which is how ODCS v3.1.0 expresses allowed values. The curl and Python commands call POST /v1/ingest with dry_run=true. Set CONTRACTGATE_API_KEY and CONTRACTGATE_CONTRACT_ID first (pip install contractgate).

Test a Sample Event Against This Contract

Paste one JSON object. The check uses the constraints that are turned on: required, type, enum, pattern, format, and min/max. It stays in the browser. PII actions (mask, hash, drop) describe how a passing string is rewritten before storage.