Stream: implementers
Topic: Complex Extensions w/ JSON Arrays
Ken Sinn (Nov 27 2018 at 19:35):
Looking at extensibility definitions, it looks like a Complex Extension w/ a repeating element would have a JSON representation of repeating URL+Value[x] pairs, rather than a URL and an Array of Values. Is that correct?
For example, is there any way to support the following format?
"extension": [ "url":"[baseurl]/extension/value-plus-array", "extension": [{ "url": "first-element", "valueString": "ListName" }, { "url":"array-of-values", "valueString": [ "value1", "value2", "value3"] }] ]
(as opposed to the following, which I believe is the "proper way to encode it)
"extension": [ "url":"[baseurl]/extension/value-plus-array", "extension": [{ "url": "first-element", "valueString": "ListName" }, { "url":"array-of-values", "valueString": "value1" }, { "url":"array-of-values", "valueString": "value2" }, { "url":"array-of-values", "valueString": "value3" }] ]
Lloyd McKenzie (Nov 27 2018 at 19:42):
There is no way to have a repeating list of values. value
is a polymorphic element and repeating polymorphic elements cause grief
Last updated: Apr 12 2022 at 19:14 UTC