eclipse-thingweb / eclipse-thingweb/node-wot

Link container requires rel type

Open
#805 0 comments 1 reaction 0 assignees View on GitHub
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

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.