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

fix: return the object as described in the TD #780

Conversation

MartinMeyer1
Copy link
Contributor

@MartinMeyer1 MartinMeyer1 commented Jun 2, 2022

The json codec returned the value corresponding to the key "value" of the readed property, instead of the full json object as expected and described in the TD.

Signed-off-by: MartinMeyer1 [email protected]

@MartinMeyer1
Copy link
Contributor Author

MartinMeyer1 commented Jun 6, 2022

I can't get why this doesn't work on windows, as it worked before the "Correct coding style" commit...

@JKRhb
Copy link
Member

JKRhb commented Jun 6, 2022

I think the issue should be unrelated to this PR and hopefully be fixed by #782.

Copy link
Member

@danielpeintner danielpeintner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

by now all implementations should no longer use the "wrapper"

@danielpeintner
Copy link
Member

@MartinMeyer1 can you merge in the changes from master...

Copy link
Member

@danielpeintner danielpeintner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed we have the same wrapper in another codec.

https://github.com/eclipse/thingweb.node-wot/blob/8f30e313d100e19bccd31446ee7fd0013c30e9d4/packages/core/src/codecs/netconf-codec.ts#L47-L52

Can you fix this also as part of this PR. Thanks!

Copy link
Member

@danielpeintner danielpeintner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Thanks @MartinMeyer1

@danielpeintner danielpeintner merged commit f6b0045 into eclipse-thingweb:master Jun 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants