Page MenuHomePhabricator

In src/ZWrapper.js, Validate against Z99/Quote Schema in Addition to Checking Z99K1 Key
Open, Needs TriagePublic

Description

Description

When creating a ZWrapper, we check whether the key of a sub-object is Z99K1 in order to avoid creating ZWrappers from the contents of a Z99/Quote. We should additionally validate the type of the enclosing object (i.e., that it is, indeed, a Z99/Quote).

Desired behavior/Acceptance criteria (returned value, expected error, performance expectations, etc.)

  • stricter check for Z99/Quote in ZWrapper.create

Completion checklist