Comments (4)
Done in 955f67d
bytesToValue()
now also gets the DataSchema and the parameters part of the content type.
from node-wot.
Hi Matthias,
two comments to your commit:
- The current implementation passes the first parameter of a content type to the
bytesToValue
method of a Codec. This might not be sufficient as multiple parameters are possible, see e.g. https://www.w3.org/Protocols/rfc1341/4_Content-Type.html and observe the*
before parameter. Multiple parameters are separated by;
. As nearly every codec using parameters has to parse them and as each parameter MUST consist of key=value it would be beneficial if the parsing is already done before and e.g. a Map is used as parameter type ofbytesToValue
. - Not only
bytesToValue
, but alsovalueToBytes
needs this information to determine the encoding. This is still missing. Please add schema and parameters. Schema may be useful to determine whether a number is an integer or a float.
@mkovatsc : If you agree with my comment, could you please re-open this issue?
from node-wot.
@6d77 is this issue still relevant or resolved by now?
from node-wot.
is already solved
from node-wot.
Related Issues (20)
- TDParser - strange behavior with unusual base URI HOT 6
- Enrich AID export with semanticId and supplementalSemanticIds
- Interface SMC should use valid idShort values HOT 2
- security should be a list of References HOT 1
- AID represents values as string and indicates actual type with valueType
- CLI not loading the script HOT 1
- Use structuredClone after replacing vm2
- Github Runner on MacOs fails with ModuleNotFoundError
- WebSocket Client HOT 3
- [http-binding] https-based connections for a client implemention should work without servient.addCredentials() HOT 2
- CI: Combination of MacOS and MQTT failing HOT 1
- AID - forms misses semanticId
- AID has required terms that need to be present always
- Align Modbus prefix with binding document HOT 2
- Stop Updating Copyright Years HOT 2
- Servient top-level resource always returns an empty layer instead of available resources HOT 1
- Enable `@typescript-eslint/no-unnecessary-condition` rule HOT 1
- Setting debug level not working HOT 1
- CoapServer crashes with RangeError [ERR_SOCKET_BAD_PORT] HOT 4
- Inconsistent way of importing classes in examples HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-wot.