5. Validation

For developersVersion 1.0.0Last updated:

On sync (or with “Validate only”), BuilderOS reports:

  • Strict bos.json (format 2). Without bos.json, without "format": 2 or without "slug", the package isn’t installed. Every unknown key is an error, with the exact path and a suggestion (pages[2].seo.titel: clave desconocida "titel". ¿Quisiste decir "title"?), and each value has its type: "auto_fields": "off" or "delay": "8" are errors. Keys that start with _ are comments. The report lists all the problems at once; in WP-CLI, the REST API and MCP they also come in schema[] with path, code and message. If it fails, the REST API responds 422 with that report (with schema[] and docs_url, without an error wrapper); docs_url points to chapter 6 of this specification on your site.
  • Errors (block the installation): unknown field types, repeated data-bos-id (and, with its own message, two repeaters in the same section with the same id: “Section X has two repeaters with id Y”), image outside an <img>, select without options, nonexistent bos.json files, duplicate sections, and removed sections that are in use on some page (unless you check Force).
  • Notices: fields without data-bos-id, resources or url() entries that don’t exist, images without alt, repeaters with elements of different structure, and richtext with block elements. A hand-written data-bos-uid that is no good is ignored with a notice:
    • …: data-bos-uid no válido (solo a-z, 0-9, guion y guion bajo): <uids>…
    • …: data-bos-uid repetido en la sección: <uids>…