-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Inconsistency in auto-generated Markdown properties? #495
Comments
@brianpos looks irregular, yet nothing here is done manually....any ideas? |
I'll take a look |
@brianpos: Yes, please ;-) |
This still the case with the R4, or is it new to R4? |
Seen only in STU3, did not try R4 |
@brianpos found out what the issue is while refactoring the .tt files for R4. There was an inconsistency in generating the Markdown property: both the Note: this is a breaking change and it changes the IConformanceResource interface too. Will discuss this breaking change at the next community meeting on monday. |
While updating my R4 server, I'm wanting us to go back to not generating the string convenience property, and force the users to handle the Markdown class. |
At the .NET standup we agreed with Brian - @brianpos has now implemented this. |
But only in R4, was that the answer in the end? |
I'd prefer if |
That pattern is only used when a. Net native type is used for the property type, and the element one caters for the string value. |
But isn't it actually the other way around? For example:
Hence I would also expect:
Not necessarily - you can treat any markdown value as a regular string. User doesn't get a nice formatted rendering, but it won't break your code. Also, I don't see why Markdown should be considered special in this regard. Same argument holds for e.g. PositiveInt or Canonical and we don't treat these differently? |
Note: I can live with this irregularity, not saying we should re-open this issue. Just wondering about the motivation. |
The markdown properties in https://github.com/ewoutkramer/fhir-net-api/blob/develop-stu3/src/Hl7.Fhir.Core/Model/Generated/StructureDefinition.cs are declared as
whereas those in https://github.com/ewoutkramer/fhir-net-api/blob/develop-stu3/src/Hl7.Fhir.Core/Model/Generated/ElementDefinition.cs are declared as
that is more consistent with other primitive type (
FhirString
etc) propertiesThe text was updated successfully, but these errors were encountered: