Commit fa847797 authored by George Papathanail's avatar George Papathanail
Browse files

[200~feat(qod): use v1 cloudevent type and omit null fields in callbacks

parent bbce007a
Loading
Loading
Loading
Loading
Loading
+1 −1
Changes for src/open_exposure_gateway/adapters/http/qod_callback_client.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ class HttpQodCallbackClient:
        async with httpx.AsyncClient(timeout=self.timeout) as client:
            response = await client.post(
                sink,
                content=event.model_dump_json(),
                content=event.model_dump_json(exclude_none=True),
                headers={"Content-Type": "application/cloudevents+json"},
            )
        response.raise_for_status()
+1 −1
Changes for src/open_exposure_gateway/domain/quality_on_demand.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -164,7 +164,7 @@ class QosStatusChangedCloudEvent(BaseModel):
    id: UUID
    source: str
    specversion: str = "1.0"
    type: str = "org.camaraproject.qod.v0.qos-status-changed"
    type: str = "org.camaraproject.quality-on-demand.v1.qos-status-changed"
    time: str
    datacontenttype: str = "application/json"
    data: EventQosStatusChangedData