eclipse-thingweb / eclipse-thingweb/node-wot

Strict checking input values causes issues

Open
#547 1 comment 0 reactions 0 assignees View on GitHub
AJV core
Dominant language
TypeScript
Stars
192
Forks
100
Avg merge
3d 2h
Merged PRs (30d)
6

Description

see use-case described in https://github.com/w3c/wot-thing-description/issues/1234.

use-case: Action should work with no value (default kicks in) or with a given value.

No matter what kind of data schema I set one or the other use-case doesn't work and fails with

`[binding-http] HttpServer on port 8080 got internal error on invoke '/countdown/actions/startCountdown': Invalid value according to DataSchema`

see
https://github.com/eclipse/thingweb.node-wot/blob/43eb73f6032497d45b3af3d7b977448220669c84/packages/examples/src/scripts/countdown.ts#L61-L68

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.