Skip to content

feat: expose icon and icon_color on Place HTTP schemas #2

@MarkCesium

Description

@MarkCesium

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions