HL7 / fhircast-docs

FHIRcast documentation
Other
22 stars 20 forks source link

Attributes with dot in their name are a problem for serialisation #55

Open mbellehumeur opened 5 years ago

mbellehumeur commented 5 years ago

"hub.topic" and other similar attribute names need special handling and are an implementation problem in C#, JavaScript, swift and probably other languages as well. We should consider sacrificing full conformance to websub and change these to "hub_topic" , "hubTopic" or just "topic". I checked and have not found any variables with dots in the name in the FHIR standard. Maybe there is already a rule for naming attributes that could superseed websub.

isaacvetter commented 5 years ago

As @mbellehumeur notes, this syntax comes from WebSub.

@lbergnehr points out that in .Net, at least,, the string "hub" is recognized as a prefix.