# Validating animations and generating types
Validate animation data, inspect structure, generate identifiers, and add CI checks.

Use the extension's developer tools to catch animation-data problems before they reach a player.

<Image src="https://assets.docs.lottiefiles.com/static/19e1e831e5-640.webp" alt="Lottie JSON developer tooling and diagnostics inside VS Code" caption="Use schema assistance and diagnostics while editing animation data" zoom variant="default" srcSet="https://assets.docs.lottiefiles.com/static/19e1e831e5-640.webp 640w, https://assets.docs.lottiefiles.com/static/19e1e831e5-1024.webp 1024w" width="1376" height="870" loading="lazy" data-blur="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAjUlEQVR4nCXKSwqCUABAUdeS7+Mn0xQVNR8GJYWKQwsbREXufwU3pMGZHatqe+rEUBcNcVGTlYasMiR5RbhPscpzh4kNVXogSHKCXYTWGuW4CCmxhvuHy/Skn7807YDv+UipEI5LEEZY/e3NapwX6lOHVhopJGJNQvxDN70YHwvl8cpGKGzbRiiNt/X5AYBzQxP7WXQsAAAAAElFTkSuQmCC" />

## Editor assistance

Recognized Lottie JSON can use:

- Schema validation.
- IntelliSense and autocomplete.
- Hover documentation.
- Navigation to relevant animation data.
- Error highlighting and live diagnostics.

Treat diagnostics as compatibility and data-quality signals. A syntactically valid JSON file can still use features unsupported by the target runtime.

## Inspect dotLottie structure

Use dotLottie Explorer to inspect the bundle manifest and embedded content without unzipping the file manually. Confirm animation IDs, markers, assets, themes, and state machines before generating code.

## Generate TypeScript identifiers

Run the LottieFiles type-generation command for a supported `.lottie` file. The current generator produces types for:

- State-machine IDs.
- Marker names.

Use the output instead of repeating string literals throughout the application. Regenerate it when the animation contract changes.

The current generator does not emit segment or theme types.

## Add CI validation

Use the CI setup commands to create supported validation artifacts such as:

- A GitHub Actions workflow.
- A pre-commit hook.
- A `.relottierc.json` configuration.

Review every generated file before committing it. The current generated `.relottierc` can contain fewer rules than the configuration UI presents, so treat the file itself as the source of truth for CI behavior.

## Recommended validation loop

1. Preview the animation locally.
2. Resolve JSON or schema diagnostics.
3. Inspect dotLottie manifest features.
4. Run the target runtime or compatibility checks.
5. Regenerate types.
6. Run the same validation in CI.

## Related

- [Commands and settings](/en/integrations/vscode/07_reference/commands-and-settings)
- [Choosing an output format](/en/integrations/vscode/05_integrate/choosing-an-output-format)
