Skip to content

Commit

Permalink
Merge branch 'v0.4.4' of github.com:microsoft/health-cards-validation…
Browse files Browse the repository at this point in the history
…-SDK into v0.4.4

Merged with repo
  • Loading branch information
christianpaquin committed Apr 14, 2021
2 parents 202519a + bc9fe62 commit f7e2bf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fhirBundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export function validate(fhirBundleText: string): ValidationResult {
const entry = fhirBundle.entry[i];
const resource = entry.resource;

validateSchema({ $ref: 'https://smarthealth.cards/schema/fhir-schema.json#/definitions/' + resource.resourceType }, resource, log, '/entry/' + i.toString());
validateSchema({ $ref: 'https://smarthealth.cards/schema/fhir-schema.json#/definitions/' + resource.resourceType }, resource, log, ['', 'entry', i.toString(), resource.resourceType].join('/'));

if (resource == null) {
log.error("Bundle.entry[" + i.toString() + "].resource missing");
Expand Down

0 comments on commit f7e2bf4

Please sign in to comment.