[openstack-dev] [api] [wsme] [ceilometer] Replacing WSME with _____ ?

Julien Danjou julien at danjou.info
Fri Aug 28 16:43:13 UTC 2015


On Fri, Aug 28 2015, Jay Pipes wrote:

> voluptuous may be more Pythonic, as Julien mentioned, but the problem is you
> can't expose the validation schema to the end user via any standard document
> format (like JSONSchema). Using the jsonschema library along with standard
> JSONSchema documents allows the API to publish its expected request and
> response schemas to the end user, allowing, for example, a client library to
> pull the schema documents and utilize a JSONSchema parsing/validation library
> locally to pre-validate data before ever sending it over the wire.

That's a good point. I think we took a look at some point to generate
JSON Schema from voluptuous, but we didn't continue since we were not
sure there were a use case. Though that might be possible I imagine if
somebody asks at some point.

(or we could also rewrite the few schemas we have to JSON Schema since
there not tight to the WSGI framework anyway)

-- 
Julien Danjou
;; Free Software hacker
;; http://julien.danjou.info
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 800 bytes
Desc: not available
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20150828/224a4088/attachment.pgp>


More information about the OpenStack-dev mailing list