Validating JSON Messages with JSON-Schema
Validating JSON Messages with JSON-Schema
Interop North Spring - Shanghai 14 19 May 2017 - Laurent MICHEL
1
Use Case: SVOM: a GRB Monitor
French Ground Segment
Pipeline (Python) REST
Heterogeneous system Multiple Agents Multiple institutes Multiple languages
Pipeline (Java) REST
{json}
{json}
{json}
Pipeline (Go) REST
Continuous integration JSON messages must be tested against specified schemes
{json} Database (C) REST
Interop North Spring - Shanghai 14 19 May 2017 - Laurent MICHEL
2
JSON Schema Home Page
Useful for the VO?
Interop North Spring - Shanghai 14 19 May 2017 - Laurent MICHEL
Screenshot
3
What is a JSON Schema
A JSON schema is a JSON object
JSON-schema components are also JSON-schemes Controlled vocabulary Compliant with a meta-schema
Can be interpreted by a processor to validate message contents
Simple type validation Complex type validation
Schema { } { "type": "string" }
Valid Any JSON entity "This is a string"
Not valid
nothing
45 { "key", "this is a string"}
Interop North Spring - Shanghai 14 19 May 2017 - Laurent MICHEL
4
Typical Schema Structure
Dictionary of definitions Components
{ "definitions": { "address": { "type": "object", "properties": { "street_address": { "type": "string" }, "city": { "type": "string" }, "state": { "type": "string" } }, "required": [ "street_address", "city", "state" ] } },
Root object structure Object or array
"type": "object",
"properties": { "billing_address": { "$ref": "#/definitions/address" }, "shipping_address": { "$ref": "#/definitions/address"
}
Interop North Spring - Shanghai 14 19 May 2017 - Laurent MICHEL
5
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- everit json schema validator using json stream
- using json schema
- validating json messages with json schema
- heroku json schema validator
- convert json file to json schema online
- json schema to xml schema online
- json user guide v6 cio
- understanding json schema georgia state university
- understanding json schema
- odata validator net framework
Related searches
- xsd to json schema converter online
- xsd to json schema online
- create json schema from json
- json schema generator free
- create json schema from sample
- json to json schema converter online
- convert json schema to xsd
- create json schema online
- json to json schema tool
- generate json schema online
- json schema to json generator
- json schema to json data