Stream: implementers
Topic: Argonaut Race Extension
Dread Hawk (Jul 13 2018 at 16:17):
pasted image
I'm writing code that essentially parses StructureDefinitions into JsonSchemas. This is throwing both myself and my code off. How is this interpretted in real life? Should there be anywhere between 1-5 extension objects in an array? Is this legal in a structure definition? I haven't found any others with duplicate keys like this.. If anyone has an STU3 page with this style of rules, or especially a JsonSchema representing one, I'd appreciate it.
Lloyd McKenzie (Jul 13 2018 at 18:39):
It's totally legal - and expected - to do this in profiles. You can set different constraints on different repetitions that have the same name. In this case, there could be 50+ extension objects. The profile has just described a specific set of extensions that are expected to be supported, but it's not enumerating everything that's possible.
Grahame Grieve (Jul 16 2018 at 00:36):
note that the IG publisher already produces Json schemas from StructureDefinitions
Eric Haas (Jul 16 2018 at 17:54):
@Grahame Grieve ...umm.... I look for this periodically and last time I checked:
<p style="color: maroon; font-weight: bold">yet to be done: json schema as html</p>
I can't locate the json schema files in the temp directory or the output directory. What are they called?
Last updated: Apr 12 2022 at 19:14 UTC