eclipse-thingweb / node-wot

A fast and extensible framework to connect any device with your browser and backend applications
https://thingweb.io
Other
162 stars 79 forks source link

Apply defaults as per WoT Thing Description spec #359

Open danielpeintner opened 3 years ago

danielpeintner commented 3 years ago

We have code applying defaults to TDs. see https://github.com/eclipse/thingweb.node-wot/blob/6854ab79022a7c71ee627a6f77a23e0eaaa9d702/packages/td-tools/src/td-parser.ts#L30-L85

Once AJV is in place we might consider replaying this manually written code with JSON schema default values.

egekorkan commented 3 years ago

https://github.com/thingweb/thingweb-playground/pull/156 this is about to be merged and will be available as an independent package on npm