- Issue created by @gapple
- First commit to issue fork.
- Merge request !15Issue #3379215: Use Choice config validation constraint β (Closed) created by elber
- last update
10 months ago 128 pass - Status changed to Needs review
10 months ago 10:16am 4 August 2023 - π§π·Brazil elber Brazil
Hi I just tried to create a basic choice contraint following these docs
https://www.drupal.org/node/3376195
https://symfony.com/doc/current/reference/constraints/Choice.html#basic-usage
- Status changed to Active
10 months ago 3:11am 5 August 2023 - π¨π¦Canada gapple
Thank you for the effort, but that MR is not really helpful.
- The validation constraint definition needs to be conditionally backported, as the CKEditor5 module previously did: https://git.drupalcode.org/project/drupal/-/merge_requests/4352/diffs#18...
- Thecsp_directive_source_list.base
schema can be a static list of options.
-csp_directive_source_list.flags
could be limited to a static list of options. I don't know that the callback is given enough context to limit flags that aren't valid for each directive (e.g.unsafe-inline
doesn't make sense if not on default-src, script-src, or style-src)
-csp_policy.reporting.plugin
could possibly be limited by a callback to the available reporting plugins - π¨π¦Canada gapple
I think easier to require
^10.2
for2.0.0
, and skip backporting support for<=10.1
in the8.x-1.x
branch. - Status changed to Postponed
4 months ago 9:25am 19 January 2024 - π¨π¦Canada gapple
I think having this as part of 2.1.0, after core support for 8.1 is dropped, since this isn't necessary to introduce in 2.0.0.