HOC SiteDokümantasyon

get_design_warnings

Dry-run design validation (no save). Pass content to validate a draft, or omit content and set target+ids to validate the saved document. Warns on unknown block types, unknown button actions, misplaced/unparseable dataRequests/inputSchema, missing requestName/variables/resultWrites, routePageId issues, form field mapping, translation gaps, a prop that belongs to another block type (design.warning.prop_not_supported_by_block), and a FlexListBlock left at the implicit row default (design.warning.flex_list_implicit_row). DOM/overflow detectors are not included.

get_design_warnings · Grup: design

Girdiler

websiteId

zorunlu

target

zorunlu — page | chrome | chrome-header | chrome-footer | page-component. chrome-header and chrome-footer select the chrome surface; target chrome plus kind still works.

pageId

isteğe bağlı

kind

isteğe bağlı — header|footer when target=chrome. header is chrome-header; footer is chrome-footer.

componentId

isteğe bağlı

content

isteğe bağlı — Optional draft editor document to validate

contentLocale

isteğe bağlı

codes

isteğe bağlı

excludeCodes

isteğe bağlı

locales

isteğe bağlı

groupBy

isteğe bağlı — code (default, counts only, truncated) | none (full rows)

Şema

{
  "name": "get_design_warnings",
  "group": "design",
  "inputFields": [
    {
      "name": "websiteId",
      "required": true
    },
    {
      "name": "target",
      "required": true,
      "description": "page | chrome | chrome-header | chrome-footer | page-component. chrome-header and chrome-footer select the chrome surface; target chrome plus kind still works."
    },
    {
      "name": "pageId",
      "required": false
    },
    {
      "name": "kind",
      "required": false,
      "description": "header|footer when target=chrome. header is chrome-header; footer is chrome-footer."
    },
    {
      "name": "componentId",
      "required": false
    },
    {
      "name": "content",
      "required": false,
      "description": "Optional draft editor document to validate"
    },
    {
      "name": "contentLocale",
      "required": false
    },
    {
      "name": "codes",
      "required": false
    },
    {
      "name": "excludeCodes",
      "required": false
    },
    {
      "name": "locales",
      "required": false
    },
    {
      "name": "groupBy",
      "required": false,
      "description": "code (default, counts only, truncated) | none (full rows)"
    }
  ]
}

Eşlendiği uçlar

  • POST /api/v1/{locale}/{websiteId}/design-warnings → API

İlgili