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

Explore other error conditions for fetching a Thing Description #446

Open
relu91 opened this issue Dec 19, 2022 · 1 comment
Open

Explore other error conditions for fetching a Thing Description #446

relu91 opened this issue Dec 19, 2022 · 1 comment
Labels
Spec-improvement Using idioms, standard prose, Web IDL, alignment with other specs

Comments

@relu91
Copy link
Member

relu91 commented Dec 19, 2022

    Here is also a good place to put the same error condition as specified in the `exploreDirectory` method:

if the underlying
implementation cannot support the Protocol Binding
indicated by |url|

Originally posted by @relu91 in #441 (comment)

@zolkis
Copy link
Contributor

zolkis commented Dec 19, 2022

The problem here is that

  • we have a section for fetching a TD that refers to HTTP fetch or libraries that implement fetching over other protocols as well;
  • the algorithm in the issue has a text like

If fetching a Thing Description is not supported by the implementation, ...

which is under-specified. We should have an algorithm for that, but it has been very tricky and there are good reasons why we don't have it. Fetch is a big spec itself, and that's only HTTP/S. Adding more protocols blows complexity upwards. That is outside the scope of the WoT Scripting spec (which is basically just a tad more than documentation for a library). We need to be able to describe choosing Protocol Bindings in terms of scripting algorithms, point to WoT and external algorithms from other specs etc.

@zolkis zolkis added Editorial Topics purely about editing the document (i.e., typos) Spec-improvement Using idioms, standard prose, Web IDL, alignment with other specs and removed Editorial Topics purely about editing the document (i.e., typos) labels Jan 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Spec-improvement Using idioms, standard prose, Web IDL, alignment with other specs
Projects
None yet
Development

No branches or pull requests

2 participants