Use automergeAttrs for BaseResource and subclasses.
Review Request #13853 — Created May 13, 2024 and submitted
This change makes use of
automergeAttrs
for our resource classes.
Spina itself specifies this fordefaults
, which means we don't have to
manually call_.defaults()
for all of these. This additionally makes
use of it forattrToJsonMap
,deserializers
, andserializers
.
- Ran js-tests.
- Verified that all objects were properly automerged.
- Change Summary:
-
- Use spina's
Result
- Fix method definitions to not use arrow functions.
- Add types to subclass' definitions so we don't get warnings about incompatibility.
- Make
listKey
a prototypeAttr, which it should have always been.
- Use spina's
- Commits:
-
Summary ID 059f82cdd65a0b9b53b67180eba170148a991bd7 d732b84d5bee784659db9673c7b4f8ef9e8be876 - Diff:
-
Revision 2 (+198 -132)
Checks run (2 succeeded)
flake8
passed.
JSHint
passed.