{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/grafomem-com/json-schema/grafomem-com-write-batch-request-schema.json",
  "title": "WriteBatchRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/grafomem-com-stores-api-openapi.yml#/components/schemas/WriteBatchRequest",
  "properties": {
    "items": {
      "items": {
        "$ref": "#/$defs/WriteRequest"
      },
      "type": "array",
      "title": "Items"
    }
  },
  "type": "object",
  "required": [
    "items"
  ],
  "$defs": {
    "WriteOptionsModel": {
      "properties": {
        "valid_from": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Valid From"
        },
        "tenant_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Tenant Id"
        },
        "signing_key": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Signing Key"
        },
        "metadata": {
          "additionalProperties": true,
          "type": "object",
          "title": "Metadata"
        }
      },
      "type": "object",
      "title": "WriteOptionsModel"
    },
    "WriteRequest": {
      "properties": {
        "content": {
          "type": "string",
          "title": "Content"
        },
        "options": {
          "$ref": "#/$defs/WriteOptionsModel",
          "default": {
            "metadata": {}
          }
        }
      },
      "type": "object",
      "required": [
        "content"
      ],
      "title": "WriteRequest"
    }
  }
}