TBD54566975 / tbdex

56 stars 25 forks source link

Add an `external_id` field to message metadata to allow caller to provide arbitrary reference #182

Closed phoebe-lew closed 7 months ago

diehuxx commented 8 months ago

I'm in favor of:

  1. Adding external_id to the metadata for all TBDex messages. We have established a pattern that all message kinds have the same metadata schema and all resource kinds have the same metadata schema. We should stick to this simple and easy to implement/validate pattern.
  2. Making NO RESTRICTION on external_ids in a given exchange.
phoebe-lew commented 8 months ago

@diehuxx what do you mean by NO RESTRICTION?

diehuxx commented 8 months ago

what do you mean by NO RESTRICTION?

When @mistermoe and I were initially talking about this feature, we considered requiring all messages in a given exchange to have the same external_id. I.e. All messages with a given exchange_id will have the same external_id. I think now that that's a bit cumbersome and not necessarily more useful than allowing messages in a given exchange have different external_ids.