From 2cfdc24850c1d26d583d9f975dbed9e7fb9a6fdc Mon Sep 17 00:00:00 2001 From: Kratos2k7 Date: Tue, 19 May 2026 00:12:22 +0500 Subject: [PATCH] fix: update descriptions and add maxLength constraints for Html5Asset properties --- schemas/html5asset.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/schemas/html5asset.yaml b/schemas/html5asset.yaml index 476f290..eb1a740 100644 --- a/schemas/html5asset.yaml +++ b/schemas/html5asset.yaml @@ -10,18 +10,21 @@ Html5Asset: type: string html: description: >- - The HTML markup for the asset. + The HTML markup for the asset. Max 1,000,000 characters. type: string + maxLength: 1000000 example: "

{{title}}

" css: description: >- - The CSS string applied to the HTML. + The CSS string applied to the HTML. Max 500,000 characters. type: string + maxLength: 500000 example: ".card { font-family: 'Inter'; padding: 32px; }" js: description: | - Optional JavaScript. Use for chart libraries, animations, or DOM manipulation. `gsap`, `d3`, `anime` and `lottie` are always available. CSS animations, transitions, and `Element.animate()` are also captured automatically. + Optional JavaScript. Use for chart libraries, animations, or DOM manipulation. `gsap`, `d3`, `anime` and `lottie` are always available. CSS animations, transitions, and `Element.animate()` are also captured automatically. Max 500,000 characters. type: string + maxLength: 500000 example: "gsap.to('.card', { x: 200, duration: 1 });" additionalProperties: false required: