You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #3 there were discussions on what to do to align "parsing", validation and default manipulation between playground and node-wot. I think there should be one codebase that does all that among Node.js based Thingweb components and we have some work to do towards that. Below are the important remarks from #3:
node-wot td parser, in consuming step, corrects user inputs (if readonly is not boolean, it is corrected to boolean) and fills defaults. This can be done by the core package as this is not needed as an external tool
We should align the default addition mechanism to use ajv and share the library between playground web and node-wot. A JSON Schema can contain default values already. Anything that needs conditions (if readOnly: false, op has writeproperty) can be programmed on top.
td-parser.ts: maybe rename it since it is a serializer as well or split the functionality
resolver-interface.ts: not sure whether we actually need this interface used by helpers and thing-model
td-helpers.ts: has little functionality, maybe can be moved into node-wot/core
Dependencies mentioned in comments there are now resolved
The text was updated successfully, but these errors were encountered:
Maybe needs to be publicly exported so that other can provide resolvers...
td-helpers.ts: has little functionality, maybe can be moved into node-wot/core
I agree, should be removed and if needed moved to core.
Now, simply deprecate functions.
Note: in general we should deprecate all classes/function in td-tools and keep them until we publish a major node-wot release version.
Afterwards we no longer need the package td-tools in node-wot.
In #3 there were discussions on what to do to align "parsing", validation and default manipulation between playground and node-wot. I think there should be one codebase that does all that among Node.js based Thingweb components and we have some work to do towards that. Below are the important remarks from #3:
The text was updated successfully, but these errors were encountered: