schemars 1.2.1

Generate JSON Schemas from Rust code
Documentation
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "MyStruct",
  "type": "object",
  "properties": {
    "bool_as_string": {
      "type": "string",
      "format": "boolean",
      "default": "false"
    },
    "bool_normal": {
      "type": "boolean",
      "default": false
    },
    "int_as_string": {
      "type": "string",
      "default": "8"
    },
    "int_normal": {
      "type": "integer",
      "format": "int32",
      "default": 8
    }
  }
}