You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <exception cref="FhirOperationException">The body content type could not be handled or the response status indicated failure, or we received an unexpected success status.</exception>
922
923
/// <exception cref="FormatException">Thrown when the original ITypedElement-based parsers are used and a parse exception occurred.</exception>
923
924
/// <exception cref="DeserializationFailedException">Thrown when a newer parsers is used and a parse exception occurred.</exception>
Copy file name to clipboardExpand all lines: src/Hl7.Fhir.Base/Rest/HttpContentParsers.cs
+11-6Lines changed: 11 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@
11
11
usingHl7.Fhir.ElementModel;
12
12
usingHl7.Fhir.Model;
13
13
usingHl7.Fhir.Serialization;
14
+
usingHl7.Fhir.Specification;
14
15
usingHl7.Fhir.Utility;
15
16
usingSystem;
16
17
usingSystem.Linq;
@@ -147,7 +148,7 @@ internal record ResponseData(Bundle.ResponseComponent Response, byte[]? BodyData
147
148
/// <remarks>If the status of the response indicates failure, this function will be lenient and return the body data
148
149
/// instead of throwing an <see cref="UnsupportedBodyTypeException"/> when the content type or content itself is not recognizable as FHIR. This improves
149
150
/// the chances of capturing diagnostic (non-FHIR) bodies returned by the server when an operation fails.</remarks>
awaitassertIssue<DeserializationFailedException>(response,"*Unknown type 'Unknown' found in root property*",engine:POCOENGINE,version:"1.0.0");
302
+
awaitassertIssue<DeserializationFailedException>(response,"*Unknown type 'Unknown' found in root property*",engine:POCOENGINE,suggestVersionOnParsingError:true,version:"1.0.0");
303
303
}
304
304
305
305
[TestMethod]
@@ -308,17 +308,17 @@ public async Task TurnsLegacyParsingFailureIntoFE()
awaitassertIssue<FormatException>(response,"*Cannot locate type information for type 'Unknown'*",engine:ELEMENTENGINE,notmatch:"*with FHIR version 1.0.0*");
310
310
awaitassertIssue<StructuralTypeException>(response,"*Cannot locate type information for type 'Unknown'*"+
311
-
"Are you connected to a FHIR server with FHIR version 1.0.0*",version:"1.0.0",engine:ELEMENTENGINE);
311
+
"Are you connected to a FHIR server with FHIR version 1.0.0*",true,version:"1.0.0",engine:ELEMENTENGINE);
0 commit comments