{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nittim-com/json-schema/nittim-com-source-post-body-schema.json",
  "title": "SourcePostBody",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nittim-com-openapi.json#/components/schemas/SourcePostBody",
  "type": "object",
  "required": [
    "files"
  ],
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 200,
      "description": "A display label for the posted snapshot (e.g. your app's name). Optional — defaults to \"posted-source\"."
    },
    "files": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PostedFile"
      },
      "minItems": 1,
      "maxItems": 500,
      "description": "At most 500 files, and the whole request body (this JSON envelope, not just file content) must stay under ~3.9MB. Pre-filter node_modules, build output, and binaries."
    }
  },
  "$defs": {
    "PostedFile": {
      "type": "object",
      "required": [
        "path",
        "content"
      ],
      "properties": {
        "path": {
          "type": "string",
          "description": "Relative path, forward-slash separated. No absolute paths, no \"..\", no backslashes."
        },
        "content": {
          "type": "string",
          "description": "The file's text content. Plain text only — no binary encoding in v1."
        }
      }
    }
  }
}