Repository navigation
Support Lottie export jobs - #6
Merged
Merged
Conversation
Vendor the current OpenAPI spec from nexrender-api main. It adds the "lottie" settings type and the settings.lottie object, so job submit and batch submit no longer drop Bodymovin's settings when they re-marshal the payload. The spec also allows [start, end, skip] frame ranges and wraps the template upload URL response in uploadInfo; the CLI does not call that endpoint. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The API runs its own checks on submit, so a payload that passes a dry run can still be refused (for example a lottie job with a codec). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Add references/api.md: profile base URLs, bearer auth, where the CLI keeps the token and how to use it without printing it, the main job endpoints, and Lottie export jobs. Note Lottie export and the local-only dry run in the README. Co-Authored-By: Claude Opus 5.5 <[email protected]>
zpl-zak
approved these changes
Nov 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
job submitandbatch submitkeepsettings.lottie. The vendored OpenAPI spec predated the Lottie export, sosettings.lottiewas dropped without an error when the CLI re-marshalled the payload.openapi/openapi.jsonis now the current spec fromnexrender-apimain, andinternal/api/api.gen.gois regenerated.Other spec changes that came along:
framesaccepts[start, end, skip]and-1, andPUT /templates/{id}/uploadwraps its response inuploadInfo. The CLI doesn't call that endpoint, so nothing else changes.--dry-runsays it only validates locally. The flag help and summary onjob submit,job joinandbatch submitnow say so. The API can still refuse a payload that passed, for example alottiejob with acodec.skills/nexrender/references/api.mdcovers each profile's base URL, bearer auth, where the CLI keeps the token (env var, keychain with go-keyring'sgo-keyring-base64:prefix,credentials.json), how to use it in one command without printing it, the main job endpoints,nexrender schema, and Lottie jobs.SKILL.md,operations.mdand the README link to it. The skill's existing rules stay: prefer the CLI, never request or print the token, ask before paid renders.Tests
TestJobPayloadKeepsLottieSettings(validate) andTestJobSubmitSendsLottieSettings(the request bodyjob submitsends). Both fail on the old generated code and pass after regeneration.go generate ./internal/api(no diff),gofmt,go test ./...,go vet ./...,go build ./cmd/nexrender,bash -n scripts/install.sh.job submit --waitwith the new binary sent{"type":"lottie","engine":"ae2026","lottie":{"should_encode_images":true}}. The job finished in 8 s, and its zip holds onlylottie/data.json, with the image embedded as a data URI and nolottie/images/.GET /jobs), and the token was never printed.Release
After merge, tag
v1.2.0sonexrender-vanguardcan switch its Lottie scenarios from direct API calls to the CLI.🤖 Generated with Claude Code