before-interop / malfacon

https://before-interop.github.io/malfacon/
1 stars 7 forks source link

CloudEvent subject #64

Closed alexisthethe closed 6 months ago

alexisthethe commented 6 months ago

ref: https://github.com/before-interop/common/blob/main/common/schemas/CloudEvent.openapi.yaml#L77

A quoi sert le champ “subject” du CloudEvent ? Quelle est la différence avec “type“ ? je ne comprends pas l'exemple “mynewfile.jpg” pour le champ “subject”

ggrebert commented 6 months ago

Le champs type représente de type de l'événement (ex: toto.tata.create ou toto.tata.delete) Le champs subject correspond au contexte. Pour malfacon, il est conseillé d'utiliser l'id de la malfacon.