Stream: IG creation
Topic: exampleFor
John Moehrke (Feb 07 2019 at 23:02):
I am trying to add an example bundle to my IG. I have started with a very simple collection bundle. But I get an error "Unable to find exampleFor resource".... WHAT?
Lloyd McKenzie (Feb 07 2019 at 23:27):
Do you have the correct URL for the profile as the exampleFor? Is the profile listed in the IG before the example is?
John Moehrke (Feb 08 2019 at 00:11):
I don't know? I don't have any idea what "exampleFor" is refering to. The example is listed as the last resource in the IG. it is checked in.
Lloyd McKenzie (Feb 08 2019 at 01:48):
It's produced in the JSON based on the exampleCanonical in the ImplementationGuide. It points to the profile the example is an example "of".
John Moehrke (Feb 08 2019 at 16:01):
so, in the example those resources that are examples of compliant with your IG profiles, need to have the <meta> saying so... and the Ig <exampleCanonical> would be that profile canonical (ish)... right? This is now understandable as logical, but was not obvious.
Lloyd McKenzie (Feb 08 2019 at 16:52):
Right. The meta saying so will make the validator look at them and the exampleCanonical will make them show up on the example tab for that profile
John Moehrke (Feb 08 2019 at 16:55):
sure wish the "Validating Resources" would express the problem rather than just nullPointerException...
Lloyd McKenzie (Feb 08 2019 at 16:57):
If it throws an NPE, that's a bug in the validator, so feel free to submit a change request (and/or post the stack trace here)
Last updated: Apr 12 2022 at 19:14 UTC