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

Define CoAP Content Negotiation #188

Closed
wants to merge 1 commit into from

Conversation

ektrah
Copy link
Member

@ektrah ektrah commented Sep 29, 2022

Since the usage of contentType and contentCoding is really unclear and we don't seem to be making progress on this topic, I propose we just ditch that and define CoAP-specific vocabulary for content negotiation.

Closes #159

@netlify
Copy link

netlify bot commented Sep 29, 2022

Deploy Preview for wot-binding-templates ready!

Name Link
🔨 Latest commit c917ce0
🔍 Latest deploy log https://app.netlify.com/sites/wot-binding-templates/deploys/63356614c2cd08000a1a80de
😎 Deploy Preview https://deploy-preview-188--wot-binding-templates.netlify.app/bindings/protocols/coap
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@ektrah ektrah added the coap related to coap protocol binding label Sep 29, 2022
@JKRhb
Copy link
Member

JKRhb commented Oct 1, 2022

You are right that having specific vocabulary for the content format and accept options probably makes more sense than deriving them from the given combination of contentType and contentCoding. Setting contentType to a zero length string does not seem that elegant to me, though.

Since contentType does not need to be present in a form but has a default value of application/json, could we rather say that CoAP forms should either not assume the default at all or a Content-Format of 50 instead which could be overridden by cov:available and cov:acceptable?

@relu91
Copy link
Member

relu91 commented Oct 6, 2022

I don't like this solution either, I prefer to dig more into a proper solution rather than doing this kind of workaround. But it all depends on the priorities and the timeline of the WG. We had a long discussion in the last main call and it is unclear if we can continue to improve the Protocol Bindings Template documents in this charter. If everything is delayed to the new charter than I think we can find a consistent solution.

@ektrah
Copy link
Member Author

ektrah commented Oct 19, 2022

(This PR relates to the discussion in w3c/wot-thing-description#1564.)

@ektrah
Copy link
Member Author

ektrah commented Nov 23, 2022

Superseded by #193

@ektrah ektrah closed this Nov 23, 2022
@ektrah ektrah deleted the coap-content-negotiation branch August 24, 2023 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
coap related to coap protocol binding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CoAP Content-Format vs. contentType/contentCoding
3 participants