✨ JSON validation for amp-story-shopping config#37474
✨ JSON validation for amp-story-shopping config#37474jshamble merged 132 commits intoampproject:mainfrom
Conversation
|
Hey @gmajoulet! These files were changed: |
|
This pull request introduces 1 alert when merging 85151a8 into 2091f72 - view on LGTM.com new alerts:
|
|
This pull request introduces 1 alert when merging 4227e69 into a61e479 - view on LGTM.com new alerts:
|
extensions/amp-story-shopping/0.1/test/test-amp-story-shopping-config.js
Outdated
Show resolved
Hide resolved
|
This pull request introduces 1 alert when merging 03e0b27 into a61e479 - view on LGTM.com new alerts:
|
|
This pull request introduces 1 alert when merging 66dafaa into a61e479 - view on LGTM.com new alerts:
|
|
This pull request introduces 1 alert when merging bf8bd53 into c9b09d0 - view on LGTM.com new alerts:
|
|
This pull request introduces 1 alert when merging 8204ae9 into d0dede1 - view on LGTM.com new alerts:
|
extensions/amp-story-shopping/0.1/test/test-amp-story-shopping-config.js
Show resolved
Hide resolved
|
This pull request introduces 1 alert when merging 656f63e into cb67fc9 - view on LGTM.com new alerts:
|
|
This pull request introduces 1 alert when merging dbf5af0 into cb67fc9 - view on LGTM.com new alerts:
|
This PR adds scalable validation for the amp-story-shopping config, see the i2i here for a complete list of required and optional fields, utilizing ajv and a JSON schema which runs on each item in the config.: #36460
The validation will not render shopping tags in the page or in the PLP if a required field is not found or is invalid.
However, it will still render valid shopping tags on the page. Blocking the rendering is done per tag, not per page.