Open cescobaz opened 3 years ago
Action metadata seems to be incomplete too. At least unit
and properties
(for objects) are missing on ActionMetadata.input
. At least https://webthings.io/api/#example-action-object suggests, that those should exist.
Hello,
I created some Things for my Raspberry and every was working fine with version 0.13.0.
I just updated to 0.15.0 and I get the following:
The code that raises the error is the following:
I read the lib code and I notice that there is a
ajv
validation of metadata ( https://github.com/WebThingsIO/webthing-node/blob/master/lib/property.ts#L55 ) and some attributes are deleted and never read ( https://github.com/WebThingsIO/webthing-node/blob/master/lib/property.ts#L54 ), why?I can't understand: PropertyMetadata interface let you write
links
field ( https://github.com/WebThingsIO/webthing-node/blob/master/lib/property.ts#L172 ).Metadata must be a JSONSchema or a PropertyMetadata object? How can I set
links
property for my Raspberry camera?( My complete code here https://github.com/cescobaz/webthing-home )
Many thanks