From 8028205a7eb1bdce29c69b6d6d27b2cfcb887497 Mon Sep 17 00:00:00 2001 From: Stephen Cox Date: Tue, 1 Oct 2024 14:31:15 +0100 Subject: [PATCH] Fix config schema error #629 --- config/schema/localgov_base.schema.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/config/schema/localgov_base.schema.yml b/config/schema/localgov_base.schema.yml index 2b289037..5dccf790 100644 --- a/config/schema/localgov_base.schema.yml +++ b/config/schema/localgov_base.schema.yml @@ -15,11 +15,8 @@ localgov_base.settings: type: boolean label: 'Add "[Draft]" to title of unpublished content.' localgov_base_header_behaviour: - type: enum + type: string label: 'Header behaviour' description: 'Choose whether the header should be sticky or not.' - default: 'default' - options: - 'default': 'Default - scrolls away with the page' - 'sticky': 'Sticky - remains at the top of the page' - 'appears_on_scroll': 'Scroll - appears when scrolling up' + constraints: + Regex: '^(default|sticky|appears_on_scroll)$'