node-wot icon indicating copy to clipboard operation
node-wot copied to clipboard

Link container requires rel type

Open danielpeintner opened this issue 2 years ago • 0 comments

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

danielpeintner avatar Jul 15 '22 08:07 danielpeintner