Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply defaults as per WoT Thing Description spec #359

Open
danielpeintner opened this issue Nov 12, 2020 · 1 comment
Open

Apply defaults as per WoT Thing Description spec #359

danielpeintner opened this issue Nov 12, 2020 · 1 comment
Labels
AJV td-tools Issues with axillary tools for node-wot

Comments

@danielpeintner
Copy link
Member

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
Copy link
Member

eclipse-thingweb/playground#156 this is about to be merged and will be available as an independent package on npm

@relu91 relu91 added the td-tools Issues with axillary tools for node-wot label Oct 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AJV td-tools Issues with axillary tools for node-wot
Projects
None yet
Development

No branches or pull requests

3 participants