{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/absence-io/refs/heads/main/json-schema/user-schema.json", "title": "User", "description": "An employee user record.", "type": "object", "properties": { "_id": { "type": "string", "description": "Unique identifier of the user.", "example": "500456" }, "name": { "type": "string", "description": "Full name of the user.", "example": "Jane Smith" }, "email": { "type": "string", "format": "email", "description": "Email address of the user.", "example": "jsmith@example.com" }, "departmentId": { "type": "string", "description": "ID of the department the user belongs to.", "example": "500999" }, "locationId": { "type": "string", "description": "ID of the location the user is assigned to.", "example": "500888" }, "teamId": { "type": "string", "description": "ID of the team the user belongs to.", "example": "500111" }, "status": { "type": "integer", "description": "User status: 1=active, 0=inactive.", "example": 1 }, "language": { "type": "string", "description": "User's preferred language code.", "example": "en" } } }