+1 to your +1. I was wondering about formal definitions for the Quantum plugin APIs. Will there be WADL definitions? I really want to use RelaxNG schemas to validate the XML payloads (request and response) defined by the API.
Andy -----Original Message----- From: openstack-bounces+biermana=brocade....@lists.launchpad.net [mailto:openstack-bounces+biermana=brocade....@lists.launchpad.net] On Behalf Of George Reese Sent: Thursday, June 02, 2011 12:53 PM To: Jorge Williams Cc: openstack@lists.launchpad.net Subject: Re: [Openstack] XML and JSON for API's +1 Sent from my iPhone On Jun 2, 2011, at 22:20, Jorge Williams <jorge.willi...@rackspace.com> wrote: > It's not just about the service itself validating it, its as Joseph said, > making sure that the data structures themselves are documented in detail to > the client. To my knowledge there is no accepted schema language in JSON > though JSON schema is starting to catch on. > > At the end of the day it should be a matter of providing our customers with a > representation that they can readily use. It could be that my perception is > wrong, but it seems to me that there's support for both representations. > I'll try to get some data to back this up. > > -jOrGe W. > > > On Jun 2, 2011, at 2:00 PM, Jay Pipes wrote: > >> On Thu, Jun 2, 2011 at 1:54 PM, Rick Clark <r...@openstack.org> wrote: >>> Hi All, >>> Is it required for new openstack API's to support both JSON and XML, or >>> would it be acceptable to only support JSON? >> >> Glance currently does not support XML and I have no plans in the >> immediate future to add support for it. >> >> IMHO, JSON can be validated just as easily as XML. Simply >> json.loads(req.body) and then, if parsing succeeds, compare the >> mapping against a model. No need for XSDs, WADLs, or any other >> acronym. >> >> -jay > > > _______________________________________________ > Mailing list: https://launchpad.net/~openstack > Post to : openstack@lists.launchpad.net > Unsubscribe : https://launchpad.net/~openstack > More help : https://help.launchpad.net/ListHelp _______________________________________________ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp _______________________________________________ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp