in a custom block to invoke an HTTP endpoint, we want to give users to option to provide additional headers for the request using a sequence parameter. This should be optional but when activating a model, we get an error about a mandatory parameter missing.
We tried using optional< sequence > but in that case we only get a single text field instead of an extensible list of name-value fields.
My understanding from the documentation is that “optional” should work in this case as well:
I have tested with Range Lookup block by adding one more parameter optional<sequence<eventWithPairOfFeilds>> testRanges .
I can see it is taking as list.
output of block with new param
test ranges are present [apama.as.NV(“5.0”,any(string,“bla”)),apama.as.NV(“15”,any(string,“blabla”))]