{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/exchangerate-dev/json-schema/exchangerate-dev-convert-batch-schema.json",
  "title": "ConvertBatch",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/exchangerate-dev-official-api-openapi.yml#/components/schemas/ConvertBatch",
  "properties": {
    "lines": {
      "items": {
        "$ref": "#/$defs/ConvertLine"
      },
      "type": "array",
      "title": "Lines"
    }
  },
  "type": "object",
  "required": [
    "lines"
  ],
  "$defs": {
    "ConvertLine": {
      "properties": {
        "base": {
          "type": "string",
          "title": "Base"
        },
        "quote": {
          "type": "string",
          "title": "Quote"
        },
        "amount": {
          "anyOf": [
            {
              "type": "number"
            },
            {
              "type": "string",
              "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$"
            }
          ],
          "title": "Amount"
        },
        "date": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Date"
        },
        "direction": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Direction"
        }
      },
      "type": "object",
      "required": [
        "base",
        "quote",
        "amount"
      ],
      "title": "ConvertLine"
    }
  }
}