{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/usestring-ai/json-schema/usestring-ai-sample-schema.json",
  "title": "Sample",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/feedbuilder-usestring-ai-openapi.yaml#/components/schemas/Sample",
  "properties": {
    "build_id": {
      "type": "string"
    },
    "feed_name": {
      "type": "string"
    },
    "fields": {
      "items": {
        "$ref": "#/$defs/Field"
      },
      "type": "array"
    },
    "object": {
      "type": "string"
    },
    "rows_written": {
      "format": "int32",
      "minimum": 0,
      "type": "integer"
    },
    "sample_rows": {
      "description": "Rows as ARRAYS, positionally aligned with `fields`. Empty when the build produced no rows — never `null`.",
      "items": {
        "items": {},
        "type": "array"
      },
      "type": "array"
    }
  },
  "required": [
    "object",
    "build_id",
    "feed_name",
    "fields",
    "sample_rows",
    "rows_written"
  ],
  "type": "object",
  "$defs": {
    "Field": {
      "properties": {
        "description": {
          "type": "string"
        },
        "key": {
          "type": "string"
        },
        "repeated": {
          "type": "boolean"
        },
        "required": {
          "type": "boolean"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "key",
        "type",
        "repeated",
        "required"
      ],
      "type": "object"
    }
  }
}