schemars 0.6.0-alpha

Generate JSON Schemas from Rust code
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Struct",
  "type": "object",
  "required": [
    "bar",
    "foo"
  ],
  "properties": {
    "bar": {
      "type": "boolean"
    },
    "foo": {
      "type": "integer",
      "format": "int32"
    }
  }
}