{"version":"1.0","name":"Infer and enforce a JSON data contract","description":"Infer a Draft 2020-12 contract from representative records, then validate a future JSON value with bounded, machine-readable error pointers.","network":"eip155:8453","asset":"USDC","paymentProtocol":"x402 v2 exact","buyerGuideUrl":"https://apiacre.com/buyers","catalogUrl":"https://apiacre.com/workflows.json","workflow":{"id":"schema-quality-gate","title":"Infer and enforce a JSON data contract","description":"Infer a Draft 2020-12 contract from representative records, then validate a future JSON value with bounded, machine-readable error pointers.","documentationUrl":"https://apiacre.com/workflows/schema-quality-gate","machineReadableUrl":"https://apiacre.com/workflows/schema-quality-gate.json","totalPrice":"$0.035","totalAtomicUsdc":35000,"stepCount":2,"steps":[{"order":1,"service":"data.schema","title":"Schema inference","purpose":"Infer a reusable schema from representative structured records.","method":"POST","url":"https://apiacre.com/v1/data/schema","price":"$0.025","documentationUrl":"https://apiacre.com/services/data.schema","checkoutUrl":"https://apiacre.com/try/data.schema","workflowStartUrl":"https://apiacre.com/workflows/schema-quality-gate/start/1","sampleUrl":"https://apiacre.com/samples/data.schema","inputTemplate":{"content":"$json($representativeRecords)","format":"json","root_mode":"records"},"useOutput":"Pass result.data.schema to the validation step."},{"order":2,"service":"data.schema-validate","title":"JSON Schema validation","purpose":"Validate a future JSON value against the inferred contract.","method":"POST","url":"https://apiacre.com/v1/data/schema-validate","price":"$0.01","documentationUrl":"https://apiacre.com/services/data.schema-validate","checkoutUrl":"https://apiacre.com/try/data.schema-validate","workflowStartUrl":"https://apiacre.com/workflows/schema-quality-gate/start/2","sampleUrl":"https://apiacre.com/samples/data.schema-validate","inputTemplate":{"schema":"$step1.result.data.schema","instance":"$futureJsonValue","max_errors":25,"check_formats":true},"useOutput":"Require result.data.valid and inspect result.data.errors when false."}]}}