eclipse-thingweb / eclipse-thingweb/node-wot
InteractionOutput - no schema/schema.type and the expectations of the value() function
Open
core
- Dominant language
- TypeScript
- Stars
- 192
- Forks
- 100
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 6
Description
PR https://github.com/eclipse-thingweb/node-wot/pull/1230 reports/fixes/adjusts the case for `schema == null` (no expected value) for `value()` function reporting `undefined` .
Anyhow, there is a much broader issue:
* what is a valid schema?
* `schema.type == null` since we use `oneof`
* optional return value
* ...
Relates also to:
* https://github.com/w3c/wot-scripting-api/pull/534
* https://github.com/w3c/wot-thing-description/issues/1441
* https://github.com/w3c/wot-thing-description/issues/1234
Contributor guide
Assessment
This issue has not been assessed yet.