Skip to content

Commit da83d85

Browse files
docs: minor fixes as requested from code review
Co-authored-by: danielpeintner <daniel.peintner@gmail.com>
1 parent 872227f commit da83d85

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ Below are small explanations of what they can be used for:
325325

326326
node-wot allows configuration of "Data Mapping" which extracts specific values from a Thing's response object (e.g., getting `123` from a wrapper `{ value: 123, timestamp: ... }`). This is useful when the Interaction only cares about an inner value but the Thing returns a wrapper object.
327327

328-
This is configured using the experimental `nw:dataSchemaMapping` vocabulary in the Thing Description. It can be defined at the Thing level or globally injected via the `Servient` configuration:
328+
This is configured using the experimental node-wot `nw:dataSchemaMapping` vocabulary in the Thing Description. It can be defined at the Thing level or globally injected via the `Servient` configuration:
329329

330330
```json
331331
{

packages/core/src/wot-impl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export default class WoTImpl {
109109
const thing = parseTD(JSON.stringify(td), true);
110110
const mapping = { ...(this.srv.dataSchemaMapping ?? {}), ...(thing["nw:dataSchemaMapping"] ?? {}) };
111111

112-
// If none mapping is configured, the property will be left undefined
112+
// If no mapping is configured, the property will be left undefined
113113
if (Object.keys(mapping).length > 0) {
114114
thing["nw:dataSchemaMapping"] = mapping;
115115
}

0 commit comments

Comments
 (0)