Stream: implementers
Topic: vonk validation
Katarina (Jan 23 2020 at 09:27):
Hi, when I post a profile to vonk it is validated, but when I put it in a zip into the vonk-import directory it is not validated. What is the difference between those two ways?
Christiaan Knaap (Jan 23 2020 at 12:11):
The contents of the vonk-import directory is read at startup and may contain multiple conformance resources (mainly StructureDefinitions) that likely depend upon each other. If the files happen to be read in the wrong order, it is impossible to validate them.
If you post a StructureDefinition to /administration/StructureDefinition, you can be in control of the right order (and post the dependencies first) so Vonk can do validation in that case.
In either case we recommend to manage your profiles on Simplifier and make sure they are valid even before loading them into Vonk.
Plus, if you have them in a Simplifier project you can load them directly from there into Vonk (see the docs on that).
Katarina (Jan 24 2020 at 08:15):
Thank you @Christiaan Knaap. How can I influence the order resources are read in at vonk startup?
Christiaan Knaap (Jan 28 2020 at 10:07):
@Katarina : You cannot. The order of the files being read is not deterministic (they are processed in parallel to speed up the process).
Last updated: Apr 12 2022 at 19:14 UTC