mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
06dd9bac59
refs https://github.com/TryGhost/Team/issues/687 - The approach of generating validation properties using `/server/data/schema` package's tables object is prone to leaking unwanted database fields into API responses - This refactor takes a tiny step into direction of relying on "allowlist" approach for properties in the API response resources. - Apart from solving the described property leak problem it also moves toward decoupling tests from `/core/server` dependencies! |
||
---|---|---|
.. | ||
authentication_spec.js | ||
db_spec.js | ||
identities_spec.js | ||
images_spec.js | ||
labels_spec.js | ||
members_signin_url_spec.js | ||
members_spec.js | ||
notifications_spec.js | ||
pages_spec.js | ||
posts_spec.js | ||
redirects_spec.js | ||
schedules_spec.js | ||
settings_spec.js | ||
site_spec.js | ||
slack_spec.js | ||
users_spec.js | ||
utils.js | ||
webhooks_spec.js |