0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core
kirrg001 bda76acba6 Extended the API object validation
refs #9548

- do not forward `tag.parent` to the model layer
  - the model layer should only know `tag.parent_id`
  - and the API should only expose `tag.parent` (this is an API feature)
  - currently Ghost has a mixture of using `toJSON` and the API validation layer for this
  - we just continue with this for now (no time to fix this)
- disallow sending nested-nested relations
  - unsupported
  - see comment for more information
  - this can cause problems with calling `hasChanged` on relations
- add unit tests
2018-04-05 18:51:58 +02:00
..
client@7fa52be861 Updated Ghost-Admin: API request without updated_by/created_by 2018-04-05 18:51:58 +02:00
server Extended the API object validation 2018-04-05 18:51:58 +02:00
test Extended the API object validation 2018-04-05 18:51:58 +02:00
index.js