You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The culprit seems to be CreatePackage(IEnumerable<FileEntries> enrtries, bool moveToPackageFolder = true) where the default boolean parameter, makes sure all entries goes directly in the package folder, and removes the example folder.
See also this unit test:
[TestMethod]
public void KeepExistingFolderStructureIfAlreadyInPackagesFolder()
{
var entries = new List<FileEntry>
{
createFileEntry("{\"resourceType\": \"Patient\",\"id\": \"example\",\"gender\": \"male\",\"birthDate\": \"1974-12-25\"}", @"package\patient-profile.json"),
createFileEntry("{\"resourceType\": \"Patient\",\"id\": \"example2\",\"gender\": \"female\",\"birthDate\": \"1974-12-25\"}", @"package\examples\example-patient.json"),
};
var files = entries.ChangeFolder(PackageFileNames.PACKAGEFOLDER);
files.Should().Contain(e => e.FilePath == @"package\patient-profile.json");
files.Should().Contain(e => e.FilePath == @"package\examples\example-patient.json");
}
One idea would be to keep the folder structure as it is if its already in the right structure.
The text was updated successfully, but these errors were encountered:
The culprit seems to be
CreatePackage(IEnumerable<FileEntries> enrtries, bool moveToPackageFolder = true)
where the default boolean parameter, makes sure all entries goes directly in thepackage
folder, and removes theexample
folder.See also this unit test:
One idea would be to keep the folder structure as it is if its already in the right structure.
The text was updated successfully, but these errors were encountered: