{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.7/storeProtocol/upload.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 opened",
  "description": "The answer to POST …/objects/{hash}/uploads, with the status 201 (Part VI, 6.8.7, rule 1): the upload's id, one plain path segment, its parts' size, and the most bytes it takes.",
  "type": "object",
  "properties": {
    "ok": {
      "const": true,
      "description": "The call was answered as asked (Part VI, 6.8.1, rule 4)."
    },
    "upload": {
      "type": "string",
      "minLength": 1,
      "pattern": "^[^/\\\\\\u0000]+$",
      "not": {
        "enum": [
          ".",
          ".."
        ]
      },
      "description": "The upload's id, one plain path segment (6.8.7, rule 3)."
    },
    "partSize": {
      "type": "integer",
      "minimum": 1,
      "description": "The size in bytes of each part but the last."
    },
    "most": {
      "type": "integer",
      "minimum": 1,
      "description": "The most bytes the upload takes, where the store says."
    }
  },
  "required": [
    "ok",
    "upload",
    "partSize"
  ]
}
