If an example uses a versioned canonical in its meta.profile, SUSHI will attempt to verify that the versioned profile is in scope for the IG before exporting it as an exampleCanonical in the IG JSON. In cases where the target profile did not specify its version, SUSHI failed to find a match. Now SUSHI will fallback to matching on the IG's version (specified in the config) if the profile does not specify a version.
I've separated this into two commits, the first of which adds (failing) tests for this, and the second of which adds the fix. You can also test this against US Core.
If an example uses a versioned canonical in its
meta.profile
, SUSHI will attempt to verify that the versioned profile is in scope for the IG before exporting it as anexampleCanonical
in the IG JSON. In cases where the target profile did not specify its version, SUSHI failed to find a match. Now SUSHI will fallback to matching on the IG's version (specified in the config) if the profile does not specify a version.I've separated this into two commits, the first of which adds (failing) tests for this, and the second of which adds the fix. You can also test this against US Core.
Fixes #1386