Wiktionary · Schema

LintError

One Parsoid lint error found in supplied wikitext.

DictionariesOpen SourceWikimediaMediaWikiLinguisticsOpen DataPublic APIs

Properties

Name Type Description
type string Lint error category.
dsr array Source range [start, end, openWidth, closeWidth].
templateInfo object If the error originates inside a template, info about it.
params object Error-specific parameters.
View JSON Schema on GitHub

JSON Schema

rest-api-lint-error-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wiktionary/refs/heads/main/json-schema/rest-api-lint-error-schema.json",
  "title": "LintError",
  "description": "One Parsoid lint error found in supplied wikitext.",
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "description": "Lint error category.",
      "example": "missing-end-tag"
    },
    "dsr": {
      "type": "array",
      "description": "Source range [start, end, openWidth, closeWidth].",
      "items": {
        "type": "integer"
      },
      "example": [
        0,
        12,
        0,
        0
      ]
    },
    "templateInfo": {
      "type": "object",
      "additionalProperties": true,
      "description": "If the error originates inside a template, info about it."
    },
    "params": {
      "type": "object",
      "additionalProperties": true,
      "description": "Error-specific parameters."
    }
  }
}