Ticket References
OpenFrame Documentation
Get the most out of OpenFrame · Book 30 minutes with Conrad, 25 years in IT. He'll show you what Mingo and Fae can take off your list.
OpenFrame Documentation
Ticket References models the people, devices, and files associated with a ticket response. It is part of Ticket Dto and is provided by the OpenFrame OSS Library test-service-core artifact.
| Component | Responsibility |
|---|---|
TicketAttachment |
Describes an uploaded file using its ID, ticket ID, name, media type, byte size, upload time, and uploader identifier. |
TicketImage |
Holds an image URL when a ticket response exposes an image reference. |
TicketMachine |
Identifies a related managed machine by document ID, machine ID, hostname, and organization ID. |
TicketUser |
Represents a person with an ID, first name, and last name. |
TicketOwner |
Represents an owner that may resolve to a machine or a user. It provides type, direct identifiers, and optional expanded machine and user objects. |
flowchart TD
Owner["Ticket Owner"] --> Type{"Owner type present?"}
Type -->|"machine"| MachineId["machineId"]
Type -->|"user"| UserId["userId"]
Owner --> Machine["Ticket Machine"]
Owner --> User["Ticket User"]
Ticket["Ticket Response"] --> Attachment["Ticket Attachment"]
Ticket --> Image["Ticket Image"]
TicketOwner can carry both a compact ID and an expanded nested object. Tests should assert the representation returned by the API and avoid assuming that nested machine or user fields are always populated merely because an ID is present.
All five DTOs accept unknown JSON properties, supporting additive response evolution. Lombok's builder and constructors allow concise fixture creation without custom mapping code. uploadedAt in TicketAttachment is an Instant, retaining a timezone-independent timestamp for upload assertions.