Skip to content
Snippets Groups Projects
Commit 3c433037 authored by Stephen Mustgrave's avatar Stephen Mustgrave
Browse files

Merge branch '3495924-validate-config-schema' into '5.0.x'

Issue #3495924: Validate config schema

See merge request !29
parents 77d1f623 17957b62
Branches
Tags 5.0.0-alpha11
No related merge requests found
Pipeline #378118 passed
......@@ -59,4 +59,4 @@ variables:
OPT_IN_TEST_MAX_PHP: '1'
OPT_IN_TEST_PREVIOUS_MAJOR: '1'
OPT_IN_TEST_NEXT_MINOR: '1'
_CSPELL_WORDS: "jaypanify,multivar,varchar"
_CSPELL_WORDS: "jaypanify,multivar,varchar,ripd"
......@@ -32,4 +32,4 @@ white_black_list: 0
country_white_black_list: 0
# A string indicating which countries should be white/black listed
country_list: ''
country_list: null
restrict_ip.settings:
type: config_object
label: 'Restrict IP settings'
constraints:
FullyValidatable: ~
mapping:
enable:
type: boolean
......@@ -40,3 +42,6 @@ restrict_ip.settings:
country_list:
type: string
label: 'A colon separated list of countries that should be white/black listed'
nullable: true
constraints:
CountryCode: []
\ No newline at end of file
......@@ -135,3 +135,10 @@ function restrict_ip_update_500001(): void {
$schema->addPrimaryKey('restrict_ip_whitelisted_ip_addresses', ['path']);
}
}
/**
* Resave config.
*/
function restrict_ip_update_500002(): void {
\Drupal::configFactory()->getEditable('restrict_ip.settings')->save();
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment