chore(api): name MessageDto as a component in the OpenAPI spec #365
Labels
No labels
area:auth
area:ci
area:db
area:infra
area:native
area:pwa
area:service
epic
feature
foundation
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
james/carol#365
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
MessageDtois used byConversationDetailDto.messages[]andTurnResponseDto.messages[]but is inlined in the generated OpenAPI types rather than registered as a namedcomponents.schemas.MessageDto(its zod schema never gets.openapi("MessageDto")).Consequence: downstream consumers can't reference
components["schemas"]["MessageDto"]directly and instead derive it fromTurnResponseDto["messages"][number]— seepackages/api-client/src/agent-stream.ts(#344) and the activity/chat code.Scope
zMessageDtoas a named component (.openapi("MessageDto")) inapps/api/lib/api/openapi-routes.tsso it appears undercomponents.schemas.openapi.json+ the@carol/api-clienttypes (both drift gates).TurnResponseDto["messages"][number]derivations to the now-namedMessageDto.Small, low-risk cleanup. Part of epic #47.