{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.6/storeProtocol/parts.schema.json",
  "$comment": "OpenEik 0.5: folded by tools/fold-schemas-0.5.mjs from the proposal storeProtocol, which 0.5 makes a rule (open questions, 28). Written by hand, not generated.",
  "title": "An upload's parts",
  "description": "The body of POST …/objects/{hash}/uploads/{upload} (Part VI, 6.8.7, rule 4): every part, from 1 in order, each with the etag its answer gave.",
  "type": "object",
  "properties": {
    "parts": {
      "type": "array",
      "minItems": 1,
      "maxItems": 10000,
      "items": {
        "type": "object",
        "properties": {
          "part": {
            "type": "integer",
            "minimum": 1,
            "maximum": 10000,
            "description": "The part's number."
          },
          "etag": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "part",
          "etag"
        ]
      }
    }
  },
  "required": [
    "parts"
  ]
}
