[openstack-dev] [Openstack] [nova] Call for Help -- OpenStack API XML Support

Paul McMillan Paul.McMillan at Nebula.com
Fri Aug 10 13:19:20 UTC 2012


On 08/10/2012 05:47 AM, Daniel P. Berrange wrote:
> It should be possible to auto
> generate an XML document from a JSON document
>
> I can imagine this isn't done because of a need to maintain
> compat with some special XML schema that isn't a direct 1-1
> mapping from the JSON schema ? Are there other complications
> preventing this  being done

I suspect it's strictly a backwards compatibility issue. Creating an 
entirely new XML API that is automatically derived from the JSON does 
sound great, but it involves deprecating an existing and documented API, 
which is where this thread got derailed earlier.

It's hard to go from XML to usable JSON, but going from JSON to XML 
shouldn't generate documents that are too horrific. The issue here is 
that whatever is produced won't feel "right" to native users of the 
format (we saw that during arguments about what the JSON API should look 
like too, from people who consider XML to be a native language).

> 4) Deprecate the current XML schemas, and declare new XML schemas
>     which are a 1-1 mapping from the JSON

I think we need to do this. The downside is that we need to support the 
existing APIs for a significant period of time (even if we're not 
expanding them).

-Paul




More information about the OpenStack-dev mailing list