{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/antfly/json-schema/antfly-auth-subject-schema.json",
  "title": "AuthSubject",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/antfly-role-api-openapi.yml#/components/schemas/AuthSubject",
  "type": "object",
  "properties": {
    "subject": {
      "type": "string",
      "description": "Casbin subject name."
    },
    "kind": {
      "type": "string",
      "enum": [
        "user",
        "role",
        "group",
        "subject"
      ],
      "description": "Conservative subject classification inferred from user records and subject prefixes."
    }
  },
  "required": [
    "subject",
    "kind"
  ]
}