eclipse-thingweb / eclipse-thingweb/node-wot
Link container requires rel type
Open
AJV
bug
core
- Dominant language
- TypeScript
- Stars
- 192
- Forks
- 100
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 6
Description
The following code
```
WoT.produce({
...
links: [ {
href: "https://www.thingweb.io/img/favicon/favicon.png",
sizes: "16x14",
// rel: "icon", // required to succeed
} ],
...
}
```
fails with
```
Error: Cannot produce ExposedThing because " + Thing Description JSON schema validation failed:
should NOT be valid
should have required property 'rel'
should match exactly one schema in oneOf
```
This should **NOT** be the case since `rel` is optional.
see https://w3c.github.io/wot-thing-description/#link
Contributor guide
Assessment
This issue has not been assessed yet.