{
  "properties": {
    "description": {
      "description": "Description of the gist",
      "type": "string"
    },
    "files": {
      "description": "Names and content for the files that make up the gist",
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "properties": {
          "content": {
            "description": "Content of the file",
            "type": "string"
          }
        },
        "required": [
          "content"
        ]
      }
    },
    "public": {
      "oneOf": [
        {
          "description": "Flag indicating whether the gist is public",
          "type": "boolean",
          "default": false
        },
        {
          "type": "string",
          "default": "false",
          "enum": [
            "true",
            "false"
          ]
        }
      ]
    }
  },
  "required": [
    "files"
  ],
  "type": "object",
  "$schema": "https://json-schema.org/draft/2019-09/schema"
}