Stream: IG creation
Topic: IG resources without a name
Jose Costa Teixeira (Jun 19 2020 at 13:15):
Compiling a part of the sample IG, I get "Unable to find ImplementationGuide.definition.resource.name for the resource Binary/example. Name is mandatory if it cannot be inferred from the resource to allow proper population of the artifact list". For resources that do not have .name or .title, is this still an error?
Giorgio Cangioli (Jun 19 2020 at 13:58):
..I believe you can always declare them in the <resource> element within the ig.xml; if this was the question :-)
Giorgio Cangioli (Jun 19 2020 at 14:00):
(at least name and description)
Jose Costa Teixeira (Jun 19 2020 at 14:04):
Giorgio Cangioli said:
..I believe you can always declare them in the <resource> element within the ig.xml; if this was the question :-)
yes, but if you don't do that, the template can take over and populates those from the resource, so either you have the resource with a name or the name explicitly in the IG (which I do, and it creates an ig.xml that is hard to manage).
Jose Costa Teixeira (Jun 19 2020 at 14:05):
Since the template has a "Plan B" (getting the names from the resources) I was wondering what happens when plan B fails because for resources like Binary it will always fail (i think): is it an error or a warning?
Giorgio Cangioli (Jun 19 2020 at 14:14):
sorry, I misunderstood the question :-)
Jose Costa Teixeira (Jun 19 2020 at 14:47):
no, thank you for the input
Last updated: Apr 12 2022 at 19:14 UTC