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
- Before closing this task, review one by one the checklist available here: https://www.mediawiki.org/wiki/Abstract_Wikipedia_team/Definition_of_Done#Back-end_Task/Bug_completion_checklist