-
Notifications
You must be signed in to change notification settings - Fork 345
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/develop' into develop-6.0
# Conflicts: # src/Hl7.Fhir.Base/CompatibilitySuppressions.xml # src/Hl7.Fhir.Base/FhirPath/ElementNavFhirExtensions.cs # src/Hl7.Fhir.Base/FhirPath/EvaluationContext.cs # src/Hl7.Fhir.Base/FhirPath/FhirEvaluationContext.cs # src/Hl7.Fhir.Base/Model/Generated/Attachment.cs # src/Hl7.Fhir.Base/Specification/Snapshot/SnapshotGeneratorExtensions.cs # src/Hl7.Fhir.Support.Tests/Specification/LanguageTerminologyServiceTests.cs # src/firely-net-sdk.props
- Loading branch information
Showing
29 changed files
with
159 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
## Intro: | ||
## Breaking changes: | ||
|
||
Hotfix: Fixed an incorrect string concatenation and subsequent argument exception when the Id of a contained resource was not set. | ||
- EvaluationContext.WithResourceOverrides() introduced in 5.10 is refactored to now be an extension method instead of a static construction method. It should now be called on an instance of EvaluationContext, and will mutate and return that instance. | ||
- We changed the datatype of the Attachment.Url from FhirUrl to FhirUri. The type of this element was changed with the introduction of R4. (FhirUrl doesn't exist in STU3). When we moved Attachment to base, we wrongfully put FhirUrl here, which is the more specific datatype of the two. We have corrected this. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/* | ||
/* | ||
* Copyright (c) 2017, Firely ([email protected]) and contributors | ||
* See the file CONTRIBUTORS for details. | ||
* | ||
|
@@ -7,7 +7,6 @@ | |
*/ | ||
|
||
using Hl7.Fhir.Utility; | ||
using System; | ||
|
||
namespace Hl7.Fhir.Specification.Snapshot | ||
{ | ||
|
@@ -35,7 +34,7 @@ public void CopyTo(SnapshotGeneratorSettings other) | |
{ | ||
if (other == null) { throw Error.ArgumentNull(nameof(other)); } | ||
other.GenerateSnapshotForExternalProfiles = GenerateSnapshotForExternalProfiles; | ||
other.RegenerationBehaviour = RegenerationBehaviour; | ||
other.ForceRegenerateSnapshots = ForceRegenerateSnapshots; | ||
other.GenerateExtensionsOnConstraints = GenerateExtensionsOnConstraints; | ||
other.GenerateAnnotationsOnConstraints = GenerateAnnotationsOnConstraints; | ||
other.GenerateElementIds = GenerateElementIds; | ||
|
@@ -56,18 +55,7 @@ public void CopyTo(SnapshotGeneratorSettings other) | |
/// Re-generated snapshots are annotated to prevent duplicate re-generation (assuming the provided resource resolver uses caching). | ||
/// If disabled (default), then the snapshot generator relies on existing snapshot components, if they exist. | ||
/// </summary> | ||
[Obsolete( | ||
"This setting does not work as intended. We will maintain the old behaviour for now, and we will consider removing it in a future major release. Use the new RegenerationBehaviour setting instead. See also https://github.com/FirelyTeam/firely-net-sdk/pull/2803")] | ||
public bool ForceRegenerateSnapshots | ||
{ | ||
get { return this.RegenerationBehaviour == RegenerationSettings.REGENERATE_ONCE; } | ||
set { this.RegenerationBehaviour = value ? RegenerationSettings.REGENERATE_ONCE : RegenerationSettings.TRY_USE_EXISTING; } | ||
} // ForceExpandAll | ||
|
||
/// <summary> | ||
/// Setting for the regeneration behaviour of the snapshot generator. see <see cref="RegenerationSettings"/>. | ||
/// </summary> | ||
public RegenerationSettings RegenerationBehaviour { get; set; } | ||
public bool ForceRegenerateSnapshots { get; set; } = false; // ForceExpandAll | ||
|
||
/// <summary> | ||
/// Enable this setting to add a custom <see cref="SnapshotGeneratorExtensions.CONSTRAINED_BY_DIFF_EXT"/> extension | ||
|
@@ -96,24 +84,4 @@ public bool ForceRegenerateSnapshots | |
// <remarks>See GForge #9791</remarks> | ||
// public bool MergeTypeProfiles { get; set; } | ||
} | ||
|
||
/// <summary> | ||
/// Settings for defining the behaviour of the snapshot generator with respect to regenerating snapshots. | ||
/// </summary> | ||
public enum RegenerationSettings | ||
{ | ||
/// <summary> | ||
/// Try to use an existing snapshot, if available. | ||
/// </summary> | ||
TRY_USE_EXISTING, | ||
/// <summary> | ||
/// Regenerate the snapshot once, to ensure it is up-to-date. | ||
/// </summary> | ||
REGENERATE_ONCE, | ||
/// <summary> | ||
/// Regenerate the snapshot every time. This is useful for debugging and testing purposes. | ||
/// </summary> | ||
[Obsolete("Watch out when using this setting! it could lead to infinite recursion and is mainly meant for debugging and testing purposes. If you previously had ForceRegenerateSnapshots set to true, consider using REGENERATE_ONCE instead.")] | ||
FORCE_REGENERATE, | ||
} | ||
} |
Oops, something went wrong.