{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sig-ai/json-schema/sig-ai-glucose-ingest-schema.json",
  "title": "GlucoseIngest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sig-ai-glucose-api-openapi.yml#/components/schemas/GlucoseIngest",
  "properties": {
    "readings": {
      "items": {
        "$ref": "#/$defs/GlucoseReadingIn"
      },
      "type": "array",
      "maxItems": 10000,
      "title": "Readings"
    }
  },
  "type": "object",
  "required": [
    "readings"
  ],
  "$defs": {
    "GlucoseReadingIn": {
      "properties": {
        "timestamp": {
          "type": "string",
          "format": "date-time",
          "title": "Timestamp"
        },
        "value": {
          "type": "number",
          "maximum": 1000.0,
          "minimum": 0.0,
          "title": "Value"
        },
        "source": {
          "type": "string",
          "title": "Source",
          "default": "manual"
        },
        "external_id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "External Id"
        }
      },
      "type": "object",
      "required": [
        "timestamp",
        "value"
      ],
      "title": "GlucoseReadingIn"
    }
  }
}