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

Automatically convert links to forms in interaction affordances and show deprecation warning #2919

Open
benfrancis opened this issue Mar 14, 2022 · 1 comment
Labels
task w3c-compliance wot-thing-description W3C WoT Thing Description specification
Milestone

Comments

@benfrancis
Copy link
Member

Some add-ons provide this manually and may also need updating.

See also #2806.

@benfrancis benfrancis added this to the 2.0 milestone Mar 14, 2022
@benfrancis benfrancis added wot-thing-description W3C WoT Thing Description specification task labels Mar 14, 2022
@benfrancis
Copy link
Member Author

benfrancis commented Mar 17, 2023

As far as I can tell mediaType is no longer added anywhere in the gateway.

The gateway automatically changes any use of mediaType in top level links to type.

Some adapter add-ons do provide their own links with mediaType rather than forms with contentType in interaction affordances, e.g. the Camera and VideoCamera devices in the virtual things add-on. Ideally this would be changed in the add-ons themselves, but we could try to automatically convert links in interaction affordances to forms:

  • Change links to forms
  • Change mediaType to contentType
  • Remove rel
  • (Probably shouldn't add an op member)

Trying to automatically convert add-on provided links to forms may be error prone, so we might want to consider just showing a deprecation warning instead.

@benfrancis benfrancis changed the title Change mediaType to contentType in forms where used Automatically convert links to forms in interaction affordances and show deprecation warning Mar 17, 2023
@benfrancis benfrancis moved this to Product Backlog in WebThings Gateway Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task w3c-compliance wot-thing-description W3C WoT Thing Description specification
Projects
Status: Product Backlog
Development

No branches or pull requests

1 participant