Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #67190 > unrolled thread

Output JSON-schema from bottle application?

Started byAlec Taylor <alec.taylor6@gmail.com>
First post2014-02-28 14:49 +1100
Last post2014-02-28 07:47 -0800
Articles 3 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  Output JSON-schema from bottle application? Alec Taylor <alec.taylor6@gmail.com> - 2014-02-28 14:49 +1100
    Re: Output JSON-schema from bottle application? Alister <alister.ware@ntlworld.com> - 2014-02-28 09:52 +0000
    Re: Output JSON-schema from bottle application? donarb <donarb@nwlink.com> - 2014-02-28 07:47 -0800

#67190 — Output JSON-schema from bottle application?

FromAlec Taylor <alec.taylor6@gmail.com>
Date2014-02-28 14:49 +1100
SubjectOutput JSON-schema from bottle application?
Message-ID<mailman.7451.1393559357.18130.python-list@python.org>
Are there libraries for doing this?

I would like to autogenerate JSON-schema for use inside an API explorer.

However whenever there is a schema change; I would only like to change
the schema in one place (where possible).

E.g.: For use here - https://github.com/salesking/json-schema-browser

How do I do this?

Thanks for all suggestions,

Alec Taylor

[toc] | [next] | [standalone]


#67211

FromAlister <alister.ware@ntlworld.com>
Date2014-02-28 09:52 +0000
Message-ID<w%YPu.2186$BX4.78@fx17.am4>
In reply to#67190
On Fri, 28 Feb 2014 14:49:07 +1100, Alec Taylor wrote:

> Are there libraries for doing this?
> 
> I would like to autogenerate JSON-schema for use inside an API explorer.
> 
> However whenever there is a schema change; I would only like to change
> the schema in one place (where possible).
> 
> E.g.: For use here - https://github.com/salesking/json-schema-browser
> 
> How do I do this?
> 
> Thanks for all suggestions,
> 
> Alec Taylor

A quick trip to google reveals the json module which is part of the std 
library

http://docs.python.org/2/library/json.html


-- 
Two cars in every pot and a chicken in every garage.

[toc] | [prev] | [next] | [standalone]


#67235

Fromdonarb <donarb@nwlink.com>
Date2014-02-28 07:47 -0800
Message-ID<29018bc7-87b7-4ff6-b5d3-f3b57f95a5b0@googlegroups.com>
In reply to#67190
On Thursday, February 27, 2014 7:49:07 PM UTC-8, Alec Taylor wrote:
> Are there libraries for doing this?
> 
> I would like to autogenerate JSON-schema for use inside an API explorer.
> 
> However whenever there is a schema change; I would only like to change
> the schema in one place (where possible).
> 
> E.g.: For use here - https://github.com/salesking/json-schema-browser
> 
> How do I do this?
> 
> Thanks for all suggestions,
> 
> Alec Taylor

Found this on PyPi, can't say if it's suitable for your requirements.

https://pypi.python.org/pypi/jsonschema

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web