Wiktionary · Schema

HtmlTransformRequest

HtmlTransformRequest schema from Wiktionary Wikimedia REST API

DictionariesOpen SourceWikimediaMediaWikiLinguisticsOpen DataPublic APIs

Properties

Name Type Description
html string Parsoid HTML to convert back to wikitext.
scrub_wikitext boolean Whether to clean up the resulting wikitext.
View JSON Schema on GitHub

JSON Schema

rest-api-html-transform-request-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-html-transform-request-schema.json",
  "title": "HtmlTransformRequest",
  "description": "HtmlTransformRequest schema from Wiktionary Wikimedia REST API",
  "type": "object",
  "properties": {
    "html": {
      "type": "string",
      "description": "Parsoid HTML to convert back to wikitext.",
      "example": "<section><h2>English</h2><p>A standard greeting.</p></section>"
    },
    "scrub_wikitext": {
      "type": "boolean",
      "description": "Whether to clean up the resulting wikitext.",
      "example": true
    }
  },
  "required": [
    "html"
  ]
}