Context
Pass the new Place icon fields through from the places gRPC service to the HTTP API. Depends on PlaceBrain/contracts#1 and PlaceBrain/places#1.
Changes
backend/gateway/src/api/places/schemas.py: add optional icon: str | None and icon_color: str | None to CreatePlaceRequest, UpdatePlaceRequest, and PlaceResponse. Update PlaceResponse.from_proto to read the new fields.
backend/gateway/src/api/places/controllers.py: thread fields into proto messages on create and update.
Acceptance
- OpenAPI schema reflects the new fields.
ruff, mypy green.
- Manual smoke: create a place with an icon,
GET /api/places/{id} returns it.
Blocked by
Blocks
Context
Pass the new Place icon fields through from the places gRPC service to the HTTP API. Depends on PlaceBrain/contracts#1 and PlaceBrain/places#1.
Changes
backend/gateway/src/api/places/schemas.py: add optionalicon: str | Noneandicon_color: str | NonetoCreatePlaceRequest,UpdatePlaceRequest, andPlaceResponse. UpdatePlaceResponse.from_prototo read the new fields.backend/gateway/src/api/places/controllers.py: thread fields into proto messages on create and update.Acceptance
ruff,mypygreen.GET /api/places/{id}returns it.Blocked by
Blocks