Documentation navigationNavigare documentație
LESSON 10 OF 14LECȚIA 10 DIN 14
Validate and version templatesValidează și versionează șabloanele
Prove split placeholders across document, header, footer, footnote, and endnote parts; enforce 10 MiB compressed, 64 MiB expanded, 2,048-entry, and 256-binding limits; reject active content before publishing immutable scalar evidence.Dovedește placeholder-ele împărțite în document, antet, subsol, note de subsol și note finale; aplică limitele de 10 MiB comprimat, 64 MiB expandat, 2.048 intrări și 256 legături; respinge conținutul activ înainte de publicarea dovezii scalare imuabile.
- ContextContext
- isolated-loopback-course
- Required roleRol necesar
- engineer
- HeadersHeadere
- Content-Type · Origin · X-CSRF-Token · Idempotency-Key · If-Match
- FixturesFixture-uri
- rca-template-oferta · rca-template-polita · rca-template-scadentar · rca-template-gdpr · rca-template-fisa-t-plus-1 · rca-expected-date-oferta · rca-expected-date-polita · rca-expected-scadentar
01 · RUN LOCALLYRULEAZĂ LOCAL
Copy the chapter commandCopiază comanda capitolului
Upload, test, preview, and publish five copied business DOCX templates.Încarcă, testează, previzualizează și publică cinci copii DOCX business.
./scripts/docula-course chapter validate-version-template --workspace "$DOCULA_COURSE_WORKSPACE"02 · CHECK THE CONTRACTVERIFICĂ CONTRACTUL
Expected released responseRăspuns publicat așteptat
{
"operation_id": "publishCanonicalTemplateVersion",
"kind": "response",
"status": 201,
"media_type": "application/json"
}03 · CHECKPOINT
Required assertionAserțiune obligatorie
{
"assertion": "actual.template_versions == expected.template_versions && actual.preview_hashes == expected.preview_hashes",
"protocol_sha256": "7eb365314c8c14bd8b3879c8d75c8b7f4511fdf88d44fcbbabaf0c63a5e3f19b"
}