~/talk

Data validation libraries in Ember

Talkat EmberFest 2021 · 2021-09-30..10-01· [ember]
links:none on file
slides:none on file

Compares ember-cp-validations, ember-changeset and others and then builds a compact yup wrapper (~60 lines) that uses tracked state to validate plain objects and Ember models, adds relationship validators for belongsTo and hasMany, returns aggregated field errors, supports abortEarly: false, inline nested validation, conditional rules via yup.when, and basic i18n message keys. The wrapper needs a small path-helper for indexed relationship errors and otherwise works as demonstrated.

AI-written summary · about

  1. 0:00Introduction to validation
  2. 1:08Existing Ember add-ons
  3. 3:58Ember Chain Set overview
  4. 5:23Goals for custom wrapper
  5. 8:14Building the wrapper
  6. 10:42Demo and usage
  7. 12:48Relationship validations
  8. 14:13Inline validation caveats
  9. 15:18Conditional validations
  10. 16:23Summary and alternatives
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.