Wikimedia · Schema

protection

Schema for protection from the Wikimedia Enterprise API

WikipediaWikimediaEncyclopediaOpen KnowledgeContentSearchReference

Properties

Name Type Description
expiry string
level string
type string
View JSON Schema on GitHub

JSON Schema

protection.json Raw ↑
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wikimedia/refs/heads/main/json-schema/protection.json",
  "title": "protection",
  "description": "Schema for protection from the Wikimedia Enterprise API",
  "type": "object",
  "properties": {
    "expiry": {
      "type": "string",
      "enum": [
        "infinite",
        "indefinite",
        "infinity",
        "never"
      ],
      "example": "infinity"
    },
    "level": {
      "type": "string",
      "example": "extendedconfirmed"
    },
    "type": {
      "type": "string",
      "example": "edit"
    }
  }
}