schemars 0.6.0-alpha

Generate JSON Schemas from Rust code
Documentation
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "MyStruct",
  "type": "object",
  "required": [
    "included",
    "writable"
  ],
  "properties": {
    "included": {
      "type": "null"
    },
    "readable": {
      "default": "",
      "readOnly": true,
      "type": "string"
    },
    "writable": {
      "writeOnly": true,
      "type": "number",
      "format": "float"
    }
  }
}