Summary: | Status messages should be able to carry structured XML or JSON content | ||
---|---|---|---|
Product: | Ytstenut | Reporter: | Olli Salli <olli.salli> |
Component: | protocol | Assignee: | Robert Staudinger <robert.staudinger> |
Status: | NEW --- | QA Contact: | |
Severity: | major | ||
Priority: | medium | CC: | olli.salli |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Olli Salli
2012-02-09 08:27:03 UTC
FWIW the C stack allows sending freely structured XML content already. Would there be any reason not to support arbitrary XML inside <ytstenut:status> ? I'd favour that and maybe even get rid of <ytstenut:description>, but restrict the possible xml attributes of <ytstenut:status> in exchange. (In reply to comment #2) > Would there be any reason not to support arbitrary XML inside <ytstenut:status> > ? I'd favour that and maybe even get rid of <ytstenut:description>, but > restrict the possible xml attributes of <ytstenut:status> in exchange. The <yts:descr>s are mandatory, so unless we remove them I think it'd be weird to have free-form optional stuff mixed with them. Why restrict the attributes? Attributes can be namespaced just like element tags, so foreign ones can be easily ignored. We might want to mandate an XML namespace for non-standard attributes though? (In reply to comment #3) > Why restrict the attributes? Attributes can be namespaced just like element > tags, so foreign ones can be easily ignored. We might want to mandate an XML > namespace for non-standard attributes though? The plan we discussed with Will in November was to move to JSON payload for messages and status. By not allowing custom attributes and encoding the payload inside in JSON we have a clean separation of protocol and data. You can of course still use XML payloads, but ytstenut-glib will not offer any facilities for that, you'll just have to pass the xml string. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.