diff --git a/index.html b/index.html index da5de4a..f9f5361 100644 --- a/index.html +++ b/index.html @@ -992,6 +992,17 @@

The InteractionOutput interface

[=Resolve=] |promise| with [[\value]]. +

+ While the {{value()}} function provides built-in validation, we recognize that some + use cases may require returning values without validation. In such cases, developers + can use alternative patterns, such as directly accessing the underlying data + using streams or the {{InteractionOutput/arrayBuffer()}} function (see [[[#validation-arraybuffer-example]]] and [[[#stream-example]]]). +

+

+ Warning: Disabling validation may introduce risks, particularly when interacting + with remote Things, as mismatches in data formats or schema expectations can lead to + unforeseen bugs and vulnerabilities. For more details, see the consumer assertions. +

The arrayBuffer() function

@@ -2463,10 +2474,25 @@

ConsumedThing Examples

// image: ArrayBuffer [0x1 0x2 0x3 0x5 0x15 0x23 ...] } +

Finally, the next two examples shows the usage of a {{ReadableStream}} from an {{InteractionOutput}}.

-
+      
         /*{
         "video": {
           "description" : "the video stream of this camera",