Re: JSON data type and schema validation

Поиск
Список
Период
Сортировка
От Evgeniy Shishkin
Тема Re: JSON data type and schema validation
Дата
Msg-id 25D7D080-A3D5-4C3D-AE2E-E2B7BC2655AF@gmail.com
обсуждение исходный текст
Ответ на JSON data type and schema validation  (Dmitry Shirokov <deadrunk@gmail.com>)
Список pgsql-hackers
> On 04 May 2015, at 06:20, Dmitry Shirokov <deadrunk@gmail.com> wrote:
>
> Hi all,
>
> Are there any plans to introduce in next versions of Postgres a schema validation for JSON field type? It would be
verynice to have a support of something like json-schema spec, see http://json-schema.org/documentation.html. Right now
there'sthe only way to do it via individual constraints, which is not very convenient in most cases. Please correct me
ifI'm wrong. 
>

Take a look at https://github.com/akorotkov/jsquery
You can find schema validation example in docs.

> Cheers,
> Dmitry




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bernd Helmle
Дата:
Сообщение: Re: cost_index() and path row estimate.
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: psql :: support for \ev viewname and \sv viewname