[go: up one dir, main page]

schemars 0.8.19

Generate JSON Schemas from Rust code
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "MyContainer",
  "type": "object",
  "required": [
    "associated",
    "generic"
  ],
  "properties": {
    "associated": {
      "type": "string"
    },
    "generic": {
      "type": "null"
    }
  }
}