NJsonSchema
NJsonSchema copied to clipboard
Failed to load schema for FHIR
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.