{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/apipass/json-schema/apipass-gift-credits-request-schema.json",
  "title": "GiftCreditsRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/apipass-credits-internal-api-openapi.yml#/components/schemas/GiftCreditsRequest",
  "properties": {
    "user_id": {
      "type": "string",
      "title": "User Id",
      "description": "用户 ID"
    },
    "amount": {
      "type": "number",
      "exclusiveMinimum": 0.0,
      "title": "Amount",
      "description": "赠送的积分数量（必须为正数）"
    },
    "note": {
      "type": "string",
      "title": "Note",
      "description": "赠送备注，仅用于日志",
      "default": ""
    }
  },
  "type": "object",
  "required": [
    "user_id",
    "amount"
  ]
}