-
Notifications
You must be signed in to change notification settings - Fork 8
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
Mismatch with MUST clause and examples in default language section #373
Comments
Thanks for reporting this issue, @himorin.
Do you have a proposed solution to this conflict? Would it be better to remove the MUST assertion from WoT Profile and stick to the SHOULD assertion from the Thing Description so that all the fallbacks can be used? I note that the Thing Description only makes the
As far as I'm aware there are no human-readable strings used by these operations which would be used directly in generating a user interface. Any semantic meaning implied by responses to operations should be interpreted by the Consumer so that it can generate its own user interface and provide its own strings (e.g. strings to represent the status of an action or a human-readable version of enum value or unit). Is there something in particular you think may need to be localised at the protocol level? |
Thank you for this comment. I now think I've mis-read the text that
If above mis-read happened, I believe this part of original comment does not be applicable, also. |
As I understand it a Thing Descriptions can have "titles": {
"en": "MyThing",
"de": "MeinDing",
"ja": "私の物",
"zh-Hans": "我的东西",
"zh-Hant": "我的東西"
}, With "@context": [
"https://www.w3.org/2022/wot/td/v1.1",
{ "@language": "en" }
],
"title": "MyThing",
"description": "Human readable information.", Where there are both In the Thing Description specification, the The Profile specification adds an additional assertion which says there must always be a On reflection, I think this assertion is probably over the top. In cases where a Thing Description only provides My personal suggestion would be to remove this assertion (and therefore the Default Language section of the Profile specification), and just stick to the Thing Description assertions which say the In my experience from TestFests/PlugFests, most Thing Descriptions do not contain a You could argue it's good practice to always provide a What do you think? |
I personally have no position on the TD specification whether to allow using |
A simple fix to the problem would be to update the examples to correspond to the normative language. |
In section 8. Default Language,
@context
array, but examples in this spec (e.g. example 1, example 2, example 4) do not have such.Also, there should be some mention about which language should be applied for reply of property request, write property, or action in protocol bindings.
The text was updated successfully, but these errors were encountered: