-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ JSON validation for amp-story-shopping config #37474
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.