-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of local templates in ig.ini
Local templates start with # in the ig.ini file, but we were expecting name#version. This fixes it so it works when # is the first character. Fixes #299.
- Loading branch information
Showing
4 changed files
with
52 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
test/ig/fixtures/customized-ig-with-local-template/ig-data/ig.ini
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[IG] | ||
ig = input/ImplementationGuide-sushi-test.json | ||
template = #local-template |
20 changes: 20 additions & 0 deletions
20
test/ig/fixtures/customized-ig-with-local-template/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"name": "sushi-test", | ||
"version" : "0.1.0", | ||
"canonical" : "http://hl7.org/fhir/sushi-test", | ||
"url" : "http://hl7.org/fhir/sushi-test", | ||
"title" : "FSH Test IG", | ||
"description": "Provides a simple example of how FSH can be used to create an IG", | ||
"dependencies": { | ||
"hl7.fhir.r4.core": "4.0.1" | ||
}, | ||
"language": "en", | ||
"author": "James Tuna", | ||
"maintainers": [ | ||
{ | ||
"name": "Bill Cod", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"license": "CC0-1.0" | ||
} |