Skip to content
Snippets Groups Projects
Commit d3fa5fa9 authored by Pierre Dureau's avatar Pierre Dureau
Browse files

Issue #3519917 by penyaskito, pdureau, larowlan: Disable additionalProperties...

Issue #3519917 by penyaskito, pdureau, larowlan: Disable additionalProperties in slots in SDC json schema
parent 1cf42783
No related branches found
No related tags found
2 merge requests!5423Draft: Resolve #3329907 "Test2",!3478Issue #3337882: Deleted menus are not removed from content type config
Pipeline #493624 passed with warnings
Pipeline: drupal

#493634

    Pipeline: drupal

    #493632

      Pipeline: drupal

      #493631

        +4
        ......@@ -4,6 +4,7 @@
        "$defs": {
        "slotDefinition": {
        "type": "object",
        "additionalProperties": false,
        "patternProperties": {
        "^[a-zA-Z0-9_-]+$": {
        "type": "object",
        ......
        ......@@ -4,6 +4,7 @@
        "$defs": {
        "slotDefinition": {
        "type": "object",
        "additionalProperties": false,
        "patternProperties": {
        "^[a-zA-Z0-9_-]+$": {
        "type": "object",
        ......
        ......@@ -124,6 +124,19 @@ public static function dataProviderValidateDefinitionInvalid(): \Generator {
        ];
        yield 'invalid slot (type)' => [$cta_with_invalid_slot_type];
        $cta_with_invalid_slot_name = $valid_cta;
        $cta_with_invalid_slot_name['slots'] = [
        'valid_slot' => [
        'title' => 'Valid slot',
        'description' => 'Valid slot description',
        ],
        'invalid slot' => [
        'title' => 'Invalid slot',
        'description' => 'Slot name cannot have spaces',
        ],
        ];
        yield 'invalid slot (name with spaces)' => [$cta_with_invalid_slot_name];
        $cta_with_invalid_variant_title_type = $valid_cta;
        $cta_with_invalid_variant_title_type['variants'] = [
        'valid_variant' => [
        ......
        0% Loading or .
        You are about to add 0 people to the discussion. Proceed with caution.
        Please register or to comment