ember-model-validator

Validate Ember Data models with declarative static validations and inline errors.

Updated Mar 24, 2026
One-click install
npx skills add https://github.com/trusted-american/marketplace --skill ember-model-validator
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ember-model-validator
Source: https://github.com/trusted-american/marketplace/tree/main/plugins/a3-plugin/skills/ember-model-validator
Command: npx skills add https://github.com/trusted-american/marketplace --skill ember-model-validator

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

ember-model-validator provides declarative client-side validation for Ember Data models. A3 uses it in 10 models (client, enrollment, contract, agency, user, dependent, carrier, plan, agent, payment) to validate data before saving to Firestore. Validations run client-side and produce error objects that are rendered inline in forms.

Core Features & Use Cases

  • Static validations: Define a static validations property on a model to declare rules.
  • Built-in validators: presence, format, length, inclusion, exclusion, numericality, acceptance, confirmation.
  • Custom validators: Support custom validation rules and multiple conditions, including cross-field checks.
  • Conditional validation: Validate or skip based on model state using if/unless conditions.
  • Error handling and i18n: Exposes errors on the model, supports translation keys for messages, and inline error rendering.
  • Triggering validation: Use validate() to run validations and populate errors; validate selectively with only or except.

Quick Start

Add a static validations property to your Ember Data model and configure the built-in or custom validators to enforce your data rules.

Frequently Asked Questions about ember-model-validator

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate Ember Data models before saving to prevent invalid data?

You can validate Ember Data models by defining a static validations property on the model, which runs client-side checks and populates error objects for inline form rendering before saving data.

What built-in validators are available for client-side model validation in Ember?

Built-in validators for Ember model validation include presence, format, length, inclusion, exclusion, numericality, acceptance, and confirmation to enforce data rules.

Can I create custom validators for cross-field validation in Ember Data?

Yes, ember-model-validator supports custom validators with multiple conditions, allowing you to implement cross-field checks and complex validation logic tailored to your model state.

How do I conditionally validate or skip validation rules based on Ember model state?

You can conditionally validate Ember models by using if and unless conditions within your static validations property to run or skip rules based on the current model state.

Does Ember model validation support internationalization for error messages?

Yes, Ember model validation supports internationalization by using translation keys for error messages, which are then exposed on the model for inline error rendering in forms.

How do I run selective validation on specific Ember model fields?

You can selectively validate Ember models by invoking the validate() method with only or except options, allowing you to run validations on specific fields while excluding others.