{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/skrime/json-schema/skrime-envelope-schema.json",
  "title": "Envelope",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/skrime-openapi.json#/components/schemas/Envelope",
  "type": "object",
  "required": [
    "response",
    "state",
    "data"
  ],
  "properties": {
    "response": {
      "type": "string",
      "description": "English message, stable per case"
    },
    "state": {
      "type": "string",
      "enum": [
        "success",
        "error"
      ]
    },
    "data": {
      "description": "Payload, an empty array when there is none"
    }
  }
}