{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/certifyos/main/json-schema/certifyos-user-response-schema.json",
  "title": "UserResponse",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/certifyos-user-api-openapi.yml#/components/schemas/UserResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "firstName": {
      "type": "string"
    },
    "lastName": {
      "type": "string"
    },
    "email": {
      "type": "string"
    },
    "tenantId": {
      "type": "string"
    },
    "createdAt": {
      "$ref": "#/$defs/Date"
    },
    "createdBy": {
      "type": "string"
    },
    "updatedAt": {
      "$ref": "#/$defs/Date"
    },
    "updatedBy": {
      "type": "string"
    },
    "roles": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RoleResponse1"
      }
    }
  },
  "$defs": {
    "Date": {
      "type": "string",
      "format": "date"
    },
    "RoleResponse1": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "tenantId": {
          "type": "string"
        },
        "isInternal": {
          "type": "boolean"
        },
        "createdAt": {
          "$ref": "#/$defs/Date"
        },
        "createdBy": {
          "type": "string"
        },
        "updatedAt": {
          "$ref": "#/$defs/Date"
        },
        "updatedBy": {
          "type": "string"
        }
      }
    }
  }
}