dpc-sdp / tide_api

Content API for Tide distribution.
https://www.drupal.org/project/tide_api
GNU General Public License v2.0
0 stars 2 forks source link

[R20-1457] Added env vars to control the content collection json validation. #119

Closed MdNadimHossain closed 1 year ago

MdNadimHossain commented 1 year ago

JIRA issue: https://digital-vic.atlassian.net/browse/R20-1457

Changed

  1. Added a environment variable check to control the content collection json validation check.
  2. The validation only required for content-health now, so setting a default value to False to not to do the validation check. Only for content-health, will add a environment variable with a value set to true in CMDB and this will turn on the validation check only for that project.

Screenshots

MdNadimHossain commented 1 year ago

Hey @krakerag I have added the same check for raw json as well, which is used for the custom collection. I missed that part before.