{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/animgen-com/json-schema/animgen-com-admin-subscription-grant-request-schema.json",
  "title": "AdminSubscriptionGrantRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/animgen-com-admin-api-openapi.yml#/components/schemas/AdminSubscriptionGrantRequest",
  "properties": {
    "requestId": {
      "type": "string",
      "format": "uuid",
      "title": "Requestid"
    },
    "planCode": {
      "type": "string",
      "enum": [
        "basic",
        "expert",
        "ultra"
      ],
      "title": "Plancode"
    },
    "durationDays": {
      "type": "integer",
      "maximum": 3650.0,
      "minimum": 1.0,
      "title": "Durationdays"
    },
    "grantCredits": {
      "type": "boolean",
      "title": "Grantcredits",
      "default": false
    },
    "reason": {
      "type": "string",
      "maxLength": 240,
      "minLength": 1,
      "title": "Reason"
    },
    "note": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 1000
        },
        {
          "type": "null"
        }
      ],
      "title": "Note"
    }
  },
  "type": "object",
  "required": [
    "requestId",
    "planCode",
    "durationDays",
    "reason"
  ]
}