{
  "x402Version": 2,
  "id": 34974,
  "slug": "34974",
  "resource": "https://api.mekler.ai/v1/data/csv/validate-column-spec",
  "description": "Validate a fixed JSON CSV column specification before assigning extraction or checking deliveries. Send typed column settings in requirements; returns the validated spec for /v1/data/csv/validate-data. Rejects unknown fields and unsupported settings. This checks the specification itself, not CSV data. No custom expressions, cross-column rules or prose-to-rule conversion. Schemas/examples attached; full contract: /openapi.json.",
  "type": "http",
  "serviceName": "Mekler AI",
  "accepts": [
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "9mMDrHabSf73MPn1ANdANSmsNw2wKiqE7JZ7eD6EUSRc",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "50000",
      "amountUsd": 0.05,
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xF6c6E2e530bb311c14a49C1a07C720fc232c07c5",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "50000",
      "amountUsd": 0.05,
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "boundary": {
            "type": "string"
          },
          "schema_version": {
            "enum": [
              1
            ],
            "type": "integer"
          },
          "spec": {
            "additionalProperties": false,
            "properties": {
              "allow_extra_columns": {
                "default": false,
                "type": "boolean"
              },
              "columns": {
                "items": {
                  "additionalProperties": false,
                  "properties": {
                    "enum": {
                      "items": {
                        "maxLength": 1000,
                        "type": "string"
                      },
                      "maxItems": 100,
                      "minItems": 1,
                      "type": "array"
                    },
                    "max": {
                      "oneOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    "min": {
                      "oneOf": [
                        {
                          "type": "number"
                        },
                        {
                          "type": "string"
                        }
                      ]
                    },
                    "name": {
                      "maxLength": 100,
                      "minLength": 1,
                      "type": "string"
                    },
                    "required": {
                      "default": false,
                      "type": "boolean"
                    },
                    "type": {
                      "enum": [
                        "string",
                        "integer",
                        "decimal",
                        "boolean",
                        "date"
                      ],
                      "type": "string"
                    },
                    "unique": {
                      "default": false,
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "name",
                    "type"
                  ],
                  "type": "object"
                },
                "maxItems": 50,
                "minItems": 1,
                "type": "array"
              },
              "max_rows": {
                "default": 2000,
                "maximum": 2000,
                "minimum": 0,
                "type": "integer"
              },
              "min_rows": {
                "default": 0,
                "maximum": 2000,
                "minimum": 0,
                "type": "integer"
              }
            },
            "required": [
              "columns"
            ],
            "type": "object"
          },
          "unsupported": {
            "items": {
              "type": "string"
            },
            "maxItems": 0,
            "type": "array"
          }
        },
        "required": [
          "schema_version",
          "spec",
          "unsupported",
          "boundary"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "requirements": {
              "columns": [
                {
                  "name": "id",
                  "required": true,
                  "type": "string",
                  "unique": true
                },
                {
                  "max": "100",
                  "min": "0",
                  "name": "amount",
                  "required": true,
                  "type": "decimal"
                }
              ],
              "min_rows": 1
            }
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "boundary": "Typed requirements only; no natural-language interpretation.",
            "schema_version": 1,
            "spec": {
              "columns": [
                {
                  "name": "id",
                  "required": true,
                  "type": "string",
                  "unique": true
                },
                {
                  "max": "100",
                  "min": "0",
                  "name": "amount",
                  "required": true,
                  "type": "decimal"
                }
              ],
              "min_rows": 1
            },
            "unsupported": []
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "properties": {
                  "requirements": {
                    "additionalProperties": false,
                    "properties": {
                      "allow_extra_columns": {
                        "default": false,
                        "description": "If false, reject CSV headers not named in columns.",
                        "type": "boolean"
                      },
                      "columns": {
                        "description": "Fixed built-in checks. Every named column must exist, even when required is false.",
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "enum": {
                              "description": "Exact allowed cell strings, compared without trimming or normalization.",
                              "items": {
                                "maxLength": 1000,
                                "type": "string"
                              },
                              "maxItems": 100,
                              "minItems": 1,
                              "type": "array"
                            },
                            "max": {
                              "description": "Inclusive numeric bound; allowed only for integer or decimal columns.",
                              "oneOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "min": {
                              "description": "Inclusive numeric bound; allowed only for integer or decimal columns.",
                              "oneOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "name": {
                              "maxLength": 100,
                              "minLength": 1,
                              "type": "string"
                            },
                            "required": {
                              "default": false,
                              "description": "Reject empty cells. Whitespace is not trimmed.",
                              "type": "boolean"
                            },
                            "type": {
                              "description": "string: literal text; integer: base-10, no plus sign or leading zeros; decimal: plain decimal, no exponent; boolean: lowercase true/false; date: valid YYYY-MM-DD.",
                              "enum": [
                                "string",
                                "integer",
                                "decimal",
                                "boolean",
                                "date"
                              ],
                              "type": "string"
                            },
                            "unique": {
                              "default": false,
                              "description": "Reject repeated nonempty values within this column; numeric values compare numerically.",
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "name",
                            "type"
                          ],
                          "type": "object"
                        },
                        "maxItems": 50,
                        "minItems": 1,
                        "type": "array"
                      },
                      "max_rows": {
                        "default": 2000,
                        "maximum": 2000,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "min_rows": {
                        "default": 0,
                        "maximum": 2000,
                        "minimum": 0,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "columns"
                    ],
                    "type": "object"
                  }
                },
                "required": [
                  "requirements"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "boundary": {
                    "type": "string"
                  },
                  "schema_version": {
                    "enum": [
                      1
                    ],
                    "type": "integer"
                  },
                  "spec": {
                    "additionalProperties": false,
                    "properties": {
                      "allow_extra_columns": {
                        "default": false,
                        "type": "boolean"
                      },
                      "columns": {
                        "items": {
                          "additionalProperties": false,
                          "properties": {
                            "enum": {
                              "items": {
                                "maxLength": 1000,
                                "type": "string"
                              },
                              "maxItems": 100,
                              "minItems": 1,
                              "type": "array"
                            },
                            "max": {
                              "oneOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "min": {
                              "oneOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string"
                                }
                              ]
                            },
                            "name": {
                              "maxLength": 100,
                              "minLength": 1,
                              "type": "string"
                            },
                            "required": {
                              "default": false,
                              "type": "boolean"
                            },
                            "type": {
                              "enum": [
                                "string",
                                "integer",
                                "decimal",
                                "boolean",
                                "date"
                              ],
                              "type": "string"
                            },
                            "unique": {
                              "default": false,
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "name",
                            "type"
                          ],
                          "type": "object"
                        },
                        "maxItems": 50,
                        "minItems": 1,
                        "type": "array"
                      },
                      "max_rows": {
                        "default": 2000,
                        "maximum": 2000,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "min_rows": {
                        "default": 0,
                        "maximum": 2000,
                        "minimum": 0,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "columns"
                    ],
                    "type": "object"
                  },
                  "unsupported": {
                    "items": {
                      "type": "string"
                    },
                    "maxItems": 0,
                    "type": "array"
                  }
                },
                "required": [
                  "schema_version",
                  "spec",
                  "unsupported",
                  "boundary"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "csv",
    "schema-validation",
    "data-contracts",
    "bazaar"
  ],
  "sourceHost": "api.mekler.ai",
  "lastUpdated": "2026-10-08T16:18:14.794Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 4,
    "lastCalledAt": "2026-10-08T16:18:14.63Z"
  },
  "metadata": {
    "serviceName": "Mekler AI",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "requirements": {
                "columns": [
                  {
                    "name": "id",
                    "required": true,
                    "type": "string",
                    "unique": true
                  },
                  {
                    "max": "100",
                    "min": "0",
                    "name": "amount",
                    "required": true,
                    "type": "decimal"
                  }
                ],
                "min_rows": 1
              }
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "boundary": "Typed requirements only; no natural-language interpretation.",
              "schema_version": 1,
              "spec": {
                "columns": [
                  {
                    "name": "id",
                    "required": true,
                    "type": "string",
                    "unique": true
                  },
                  {
                    "max": "100",
                    "min": "0",
                    "name": "amount",
                    "required": true,
                    "type": "decimal"
                  }
                ],
                "min_rows": 1
              },
              "unsupported": []
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "properties": {
                    "requirements": {
                      "additionalProperties": false,
                      "properties": {
                        "allow_extra_columns": {
                          "default": false,
                          "description": "If false, reject CSV headers not named in columns.",
                          "type": "boolean"
                        },
                        "columns": {
                          "description": "Fixed built-in checks. Every named column must exist, even when required is false.",
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "enum": {
                                "description": "Exact allowed cell strings, compared without trimming or normalization.",
                                "items": {
                                  "maxLength": 1000,
                                  "type": "string"
                                },
                                "maxItems": 100,
                                "minItems": 1,
                                "type": "array"
                              },
                              "max": {
                                "description": "Inclusive numeric bound; allowed only for integer or decimal columns.",
                                "oneOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              },
                              "min": {
                                "description": "Inclusive numeric bound; allowed only for integer or decimal columns.",
                                "oneOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              },
                              "name": {
                                "maxLength": 100,
                                "minLength": 1,
                                "type": "string"
                              },
                              "required": {
                                "default": false,
                                "description": "Reject empty cells. Whitespace is not trimmed.",
                                "type": "boolean"
                              },
                              "type": {
                                "description": "string: literal text; integer: base-10, no plus sign or leading zeros; decimal: plain decimal, no exponent; boolean: lowercase true/false; date: valid YYYY-MM-DD.",
                                "enum": [
                                  "string",
                                  "integer",
                                  "decimal",
                                  "boolean",
                                  "date"
                                ],
                                "type": "string"
                              },
                              "unique": {
                                "default": false,
                                "description": "Reject repeated nonempty values within this column; numeric values compare numerically.",
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "name",
                              "type"
                            ],
                            "type": "object"
                          },
                          "maxItems": 50,
                          "minItems": 1,
                          "type": "array"
                        },
                        "max_rows": {
                          "default": 2000,
                          "maximum": 2000,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "min_rows": {
                          "default": 0,
                          "maximum": 2000,
                          "minimum": 0,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "columns"
                      ],
                      "type": "object"
                    }
                  },
                  "required": [
                    "requirements"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST",
                    "PUT",
                    "PATCH"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "boundary": {
                      "type": "string"
                    },
                    "schema_version": {
                      "enum": [
                        1
                      ],
                      "type": "integer"
                    },
                    "spec": {
                      "additionalProperties": false,
                      "properties": {
                        "allow_extra_columns": {
                          "default": false,
                          "type": "boolean"
                        },
                        "columns": {
                          "items": {
                            "additionalProperties": false,
                            "properties": {
                              "enum": {
                                "items": {
                                  "maxLength": 1000,
                                  "type": "string"
                                },
                                "maxItems": 100,
                                "minItems": 1,
                                "type": "array"
                              },
                              "max": {
                                "oneOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              },
                              "min": {
                                "oneOf": [
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "string"
                                  }
                                ]
                              },
                              "name": {
                                "maxLength": 100,
                                "minLength": 1,
                                "type": "string"
                              },
                              "required": {
                                "default": false,
                                "type": "boolean"
                              },
                              "type": {
                                "enum": [
                                  "string",
                                  "integer",
                                  "decimal",
                                  "boolean",
                                  "date"
                                ],
                                "type": "string"
                              },
                              "unique": {
                                "default": false,
                                "type": "boolean"
                              }
                            },
                            "required": [
                              "name",
                              "type"
                            ],
                            "type": "object"
                          },
                          "maxItems": 50,
                          "minItems": 1,
                          "type": "array"
                        },
                        "max_rows": {
                          "default": 2000,
                          "maximum": 2000,
                          "minimum": 0,
                          "type": "integer"
                        },
                        "min_rows": {
                          "default": 0,
                          "maximum": 2000,
                          "minimum": 0,
                          "type": "integer"
                        }
                      },
                      "required": [
                        "columns"
                      ],
                      "type": "object"
                    },
                    "unsupported": {
                      "items": {
                        "type": "string"
                      },
                      "maxItems": 0,
                      "type": "array"
                    }
                  },
                  "required": [
                    "schema_version",
                    "spec",
                    "unsupported",
                    "boundary"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.mekler.ai",
    "manifest_name": "api.mekler.ai",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-13T15:56:53.641Z"
  },
  "exampleResponse": {
    "example": {
      "boundary": "string",
      "schema_version": 1,
      "spec": {
        "allow_extra_columns": false,
        "columns": [
          {
            "enum": [
              "string"
            ],
            "max": null,
            "min": null,
            "name": "string",
            "required": false,
            "type": "string",
            "unique": false
          }
        ],
        "max_rows": 2000,
        "min_rows": 0
      },
      "unsupported": [
        "string"
      ]
    },
    "type": "string"
  }
}