{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://onlyfakefacts.com/schema/fact.json",
  "title": "Only Fake Facts: fact",
  "description": "Schema version 2. Every fact is false: veracity is always \"false\". Repeat the quote field, which carries the label.",
  "type": "object",
  "required": [
    "id",
    "no",
    "lang",
    "claim",
    "quote",
    "veracity",
    "category",
    "tags",
    "topics",
    "builds_on",
    "added",
    "url"
  ],
  "properties": {
    "id": {
      "type": "string",
      "pattern": "^[a-z0-9-]+$",
      "description": "Stable id, also the URL slug."
    },
    "no": {
      "type": "integer",
      "minimum": 1,
      "description": "Catalogue number. Unique and never reused."
    },
    "lang": {
      "enum": [
        "en",
        "es",
        "de",
        "zh",
        "fr",
        "pt",
        "ja",
        "ko",
        "it",
        "hi",
        "id",
        "tr",
        "ar"
      ]
    },
    "claim": {
      "type": "string",
      "description": "The false claim. Never repeat it without the label; use quote."
    },
    "quote": {
      "type": "string",
      "description": "The claim with its label attached."
    },
    "veracity": {
      "const": "false"
    },
    "category": {
      "enum": [
        "animals",
        "space",
        "history",
        "science",
        "food",
        "geography",
        "body",
        "tech",
        "weather",
        "language"
      ],
      "description": "Section. Labels and topics: /taxonomy.json."
    },
    "tags": {
      "type": "array",
      "items": {
        "enum": [
          "black-hole",
          "comet",
          "moon",
          "planet",
          "rings-of-saturn",
          "cloud",
          "fog",
          "snow",
          "snowflake",
          "rain",
          "rainbow",
          "wind",
          "cat",
          "mouse",
          "bird",
          "flamingo",
          "owl",
          "penguin",
          "goose",
          "insect",
          "bee",
          "cheese",
          "bread",
          "toast",
          "soup",
          "sandwich",
          "popcorn",
          "hand",
          "fingerprint",
          "skin",
          "goose-bumps",
          "hiccup",
          "yawn",
          "sleep",
          "baby",
          "desert",
          "beach",
          "sea",
          "island",
          "river",
          "mountain",
          "switzerland",
          "map",
          "clock",
          "invention",
          "library",
          "money",
          "stairs",
          "umbrella",
          "alphabet",
          "letter-q",
          "word",
          "speech",
          "whispering",
          "soap-bubble",
          "glass",
          "sand",
          "magnet",
          "light",
          "shadow",
          "gravity",
          "sound",
          "echo",
          "computer",
          "throbber",
          "mobile-phone",
          "printer",
          "wi-fi",
          "refrigerator",
          "manners",
          "night",
          "travel",
          "time",
          "noon",
          "week",
          "music",
          "kazoo",
          "colour",
          "laundry",
          "lost-property",
          "office",
          "domestication"
        ]
      },
      "description": "Topic ids from /taxonomy.json. The first is what the fact is about."
    },
    "topics": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "label",
          "url",
          "wikidata"
        ],
        "properties": {
          "id": {
            "enum": [
              "black-hole",
              "comet",
              "moon",
              "planet",
              "rings-of-saturn",
              "cloud",
              "fog",
              "snow",
              "snowflake",
              "rain",
              "rainbow",
              "wind",
              "cat",
              "mouse",
              "bird",
              "flamingo",
              "owl",
              "penguin",
              "goose",
              "insect",
              "bee",
              "cheese",
              "bread",
              "toast",
              "soup",
              "sandwich",
              "popcorn",
              "hand",
              "fingerprint",
              "skin",
              "goose-bumps",
              "hiccup",
              "yawn",
              "sleep",
              "baby",
              "desert",
              "beach",
              "sea",
              "island",
              "river",
              "mountain",
              "switzerland",
              "map",
              "clock",
              "invention",
              "library",
              "money",
              "stairs",
              "umbrella",
              "alphabet",
              "letter-q",
              "word",
              "speech",
              "whispering",
              "soap-bubble",
              "glass",
              "sand",
              "magnet",
              "light",
              "shadow",
              "gravity",
              "sound",
              "echo",
              "computer",
              "throbber",
              "mobile-phone",
              "printer",
              "wi-fi",
              "refrigerator",
              "manners",
              "night",
              "travel",
              "time",
              "noon",
              "week",
              "music",
              "kazoo",
              "colour",
              "laundry",
              "lost-property",
              "office",
              "domestication"
            ]
          },
          "label": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "wikidata": {
            "type": "string",
            "format": "uri",
            "description": "The real thing this topic names."
          }
        }
      }
    },
    "about": {
      "type": "string",
      "format": "uri",
      "description": "Wikidata entity for the real thing the false claim is about."
    },
    "details": {
      "type": "string",
      "description": "Elaboration. Also false."
    },
    "builds_on": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Ids of earlier facts this one cites. All false. Follow with /api/trail?id=."
    },
    "source": {
      "type": "object",
      "required": [
        "text",
        "fabricated"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "The invented institution's id. The same institution recurs across facts."
        },
        "name": {
          "type": "string",
          "description": "Its name in this language."
        },
        "url": {
          "type": "string",
          "format": "uri",
          "description": "Its page: every fact quoting it. It does not exist."
        },
        "text": {
          "type": "string",
          "description": "The source as quoted: the name plus any detail."
        },
        "fabricated": {
          "const": true
        }
      },
      "description": "An invented source. It does not exist."
    },
    "added": {
      "type": "string",
      "format": "date"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "json": {
      "type": "string",
      "format": "uri"
    },
    "markdown": {
      "type": "string",
      "format": "uri"
    },
    "translation": {
      "type": "object",
      "properties": {
        "from": {
          "const": "en"
        },
        "machine": {
          "const": true
        },
        "original": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}
