Skip to content
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

Support line # in case validators fail to deserialize #366

Open
vadi2 opened this issue May 10, 2021 · 1 comment
Open

Support line # in case validators fail to deserialize #366

vadi2 opened this issue May 10, 2021 · 1 comment

Comments

@vadi2
Copy link
Member

vadi2 commented May 10, 2021

If you pass an invalid resource to Firely SDK, it won't give an operationoutcome but throw an error on parsing instead - and Hammer doesn't recognize the line #'s then.

Format:

FormatException: Invalid Json encountered. Details: Input string '-1.000000000000000000E+245' is not a valid decimal. Path 'component[6].valueQuantity.value', line 72, position 43.

Invalid Json encountered. Details: Input string '-1.000000000000000000E+245' is not a valid decimal. Path 'component[6].valueQuantity.value', line 72, position 43.
   at Hl7.Fhir.Utility.SerializationUtil.JObjectFromReader(JsonReader reader)
   at Hl7.Fhir.Serialization.FhirJsonNode.Read(JsonReader reader, String rootName, FhirJsonParsingSettings settings)
   at Hl7.Fhir.Serialization.FhirJsonNode.Parse(String json, String rootName, FhirJsonParsingSettings settings)
   at Program.AppModel.ValidateWithDotnet(CancellationToken token) in /media/vadi/SSDer/Programs/Hammer/Program.cs:line 766
@vadi2
Copy link
Member Author

vadi2 commented May 10, 2021

Same case for Java:

org.xml.sax.SAXParseException; lineNumber: 43; columnNumber: 5; The element type "use" must be terminated by the matching end-tag "</use>".

@vadi2 vadi2 changed the title Support line # in case .NET fails to deserialize Support line # in case validators fail to deserialize May 10, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant