{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/myoddly-com/json-schema/myoddly-com-envelope-schema.json",
  "title": "Envelope",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/myoddly-com-openapi.yml#/components/schemas/Envelope",
  "type": "object",
  "required": [
    "data",
    "meta"
  ],
  "properties": {
    "data": {
      "type": "object",
      "description": "The resource payload. Shape depends on the endpoint."
    },
    "meta": {
      "$ref": "#/$defs/Meta"
    }
  },
  "$defs": {
    "Meta": {
      "type": "object",
      "required": [
        "request_id",
        "api_version",
        "tier"
      ],
      "properties": {
        "request_id": {
          "type": "string",
          "description": "Echoed in the X-Request-Id header. Quote it in support tickets."
        },
        "api_version": {
          "type": "string",
          "enum": [
            "v1"
          ]
        },
        "tier": {
          "type": "string",
          "description": "The caller's tier at request time."
        }
      }
    }
  }
}