Template contract
Field contract for rendloom.template/1. The complete machine-readable schema and runnable fixtures will be generated from the implemented validator. This page is not that file, and the validator is not claimed to be running.
Top-level fields
- schemaVersion
- Required constant rendloom.template/1. Documents with a different id are rejected.
- medium
- Required image or video. One version compiles to one medium.
- name
- Required plain-text title for catalogs and headers. HTML and control characters are rejected.
- inputSchema
- Required bounded schema with additional properties closed. Allowed values are string, number, boolean, enum, and a restricted image id. Arbitrary external references, recursive trees, and scripts are rejected.
- formHints
- Optional labels, order, and placeholders. Hints cannot loosen inputSchema.
- resources
- Authorized immutable asset ids. Arbitrary URLs and local paths are rejected. System fonts and system audio are licensed operational resources, not upload formats.
- renderer / design
- The validated native image or video structure for the shared adapter. Each version defines one fixed output. Untrusted canvas code is rejected.
- sampleInputs
- Explicit example data only. Examples are never filled into a real user task on their own.
Size and motion limits
- Serialized template JSON at most 256KiB.
- Video clock is 30fps. Author duration is 3–30 seconds.
- Image layers at most 100. Expanded video elements at most 120. Nesting at most 6.
- Published outputs stay on the fixed sizes: PNG 1080×1350, MP4 1080×1920 and 1080×1080, and GIF 1080×1080.
Errors
A validation error carries a code, a stage, a JSON Pointer such as /inputSchema/properties/eventTitle, and correction guidance. Those codes illustrate the contract. They are not a statement that a particular validator build is deployed.
Unsupported characters are rejected. The author changes the text or the template. Custom emoji bundles and custom font uploads are not a V1 feature. When required concrete inputs are missing, dynamic checks are marked skipped because they were not run.
Draft and publish
- An account has one current draft. Updates send the current ETag. A mismatch returns a conflict instead of overwriting the other save.
- Saving does not publish. Publishing freezes an immutable version. Older accepted tasks keep the version they started with.
- Private publishing makes that version available to the same account. It does not grant team access, and it does not enter the public catalog.
- Official catalog publication needs real samples and visual QA. Publishing does not turn sharing on.