mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
0728d07ad1
Those self-tests are "basic" in the sense that they only validate their compliance with our documented schema in one representation. These test cases don't yet cover/validate whether the generated representation also fulfills the schema under different circumstances, for example when rendering for a user with fewer privileges, not allowed to see certain fields. Where necessary, the schema was changed to reflect the reality, e.g. when those tests revealed that a "required" field might be missing due to a lack of permissions. In a few cases the implementation was adapted to allow for stricter guarantees of the specified schema, for example links allowed to leave out the title key already, so its not necessary to emit `title: nil` in cases where a title is not known.