{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/commsharbor/json-schema/commsharbor-membership-schema.json",
  "title": "Membership",
  "description": "One person's place in one organization.",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/commsharbor-invitations-api-openapi.yml#/components/schemas/Membership",
  "type": "object",
  "properties": {
    "organization_id": {
      "type": "string",
      "description": "The organization."
    },
    "user_id": {
      "type": "string",
      "description": "The member."
    },
    "role": {
      "type": "string",
      "description": "What the member may do."
    },
    "created_at": {
      "type": "string",
      "description": "When the membership started (UTC)."
    }
  },
  "required": [
    "organization_id",
    "user_id",
    "role",
    "created_at"
  ]
}