Skip to content

Conversation

@danielpeintner
Copy link
Member

TODO calls for contentToValue and valueToContent need to provide scheme

fixes #1409

TODO calls for contentToValue and valueToContent need to provide schema
@danielpeintner danielpeintner marked this pull request as draft August 19, 2025 12:39
@danielpeintner
Copy link
Member Author

danielpeintner commented Aug 19, 2025

Note: The failing tests are in areas that haven't been touched and the error

Exception during run: SyntaxError[ @/home/runner/work/node-wot/node-wot/packages/binding-websockets/test/ws-tests.ts ]: Invalid or unexpected token

reminds me to what we have been seeing for Node.js 24.
see #1377 (comment)

Anyhow, the failures are coming from Node.js 22

@danielpeintner
Copy link
Member Author

FYI: Failing tests issue resolved by now.
I am interested to hear whether people think we should add such a possibility

@danielpeintner danielpeintner added the Discuss in Committer Meeting Labels issues and PRs that should be discussed in our regular Thingweb Committer Meeting. label Oct 27, 2025
@danielpeintner
Copy link
Member Author

Based on the OPC UA discussion, where it would be beneficial to have a specific application/octet-stream for OPC UA while keeping the generic one in place. Does it make sense to move forward with this PR?

The change is to extend the addCodec() method with an optional scheme parameter to take precedence...

@relu91 @erossignon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Discuss in Committer Meeting Labels issues and PRs that should be discussed in our regular Thingweb Committer Meeting.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow different Codecs for the same contentType

1 participant