NJsonSchema icon indicating copy to clipboard operation
NJsonSchema copied to clipboard

Failed to load schema for FHIR

Open lbcsy opened this issue 7 years ago • 0 comments

It seems failed to load schema for FHIR from http://hl7.org/fhir/json-schema, for example http://hl7.org/fhir/json-schema/EnrollmentRequest, it took long long time to return from JsonSchema4.FromUrlAsync (actually I have to kill it).

var schema = await JsonSchema4.FromUrlAsync(@"http://hl7.org/fhir/json-schema/EnrollmentRequest");

If I downloaded the schema and using FromJsonAsync, it was the same result until I removed the "$ref"s in the schema, those "$ref"s are referring to schema json on the FHIR server.

It seems your library does recursive schema parsing but lost somewhere if there are circular references.

lbcsy avatar Feb 08 '18 00:02 lbcsy