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

Attachment: signature.asc
Description: PGP signature

__________________________________________________________________________
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

Reply via email to