{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/postzen-dev/json-schema/postzen-dev-profiles-list-response-schema.json",
  "title": "ProfilesListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/postzen-dev-profiles-api-openapi.yml#/components/schemas/ProfilesListResponse",
  "type": "object",
  "required": [
    "profiles"
  ],
  "properties": {
    "profiles": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Profile"
      }
    }
  },
  "$defs": {
    "Profile": {
      "type": "object",
      "required": [
        "_id",
        "userId",
        "name",
        "color",
        "isDefault",
        "createdAt"
      ],
      "properties": {
        "_id": {
          "type": "string",
          "description": "PostZen profile id."
        },
        "userId": {
          "type": "string",
          "description": "Owner user id."
        },
        "name": {
          "type": "string",
          "maxLength": 80
        },
        "description": {
          "type": "string",
          "maxLength": 240
        },
        "color": {
          "type": "string",
          "pattern": "^#[0-9a-fA-F]{6}$",
          "description": "Hex color in `#rrggbb` format."
        },
        "isDefault": {
          "type": "boolean"
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    }
  }
}