Wiktionary · JSON Structure

Rest Api Lint Error Structure

One Parsoid lint error found in supplied wikitext.

Type: object Properties: 4
DictionariesOpen SourceWikimediaMediaWikiLinguisticsOpen DataPublic APIs

LintError is a JSON Structure definition published by Wiktionary, describing 4 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

type dsr templateInfo params

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wiktionary/refs/heads/main/json-structure/rest-api-lint-error-structure.json",
  "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": "int32"
      },
      "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."
    }
  },
  "name": "LintError"
}