From c398d60f5459ea2a53451396183d92626567036d Mon Sep 17 00:00:00 2001 From: Christian Borup Date: Mon, 2 Jun 2025 11:02:58 +0200 Subject: [PATCH] Remove enum variants from boolean fields in the Upsun JSON schema, --- validator/schema/upsun.json | 30 +++++------------------------- 1 file changed, 5 insertions(+), 25 deletions(-) diff --git a/validator/schema/upsun.json b/validator/schema/upsun.json index 951911a..bf93a72 100644 --- a/validator/schema/upsun.json +++ b/validator/schema/upsun.json @@ -114,11 +114,7 @@ "enabled": { "type": "boolean", "title": "Whether the preflight security blocks are enabled", - "description": "Must be a boolean", - "enum": [ - true, - false - ] + "description": "Must be a boolean" }, "ignored_rules": { "type": "array", @@ -275,11 +271,7 @@ "allow": { "type": "boolean", "title": "Whether to allow serving files which don’t match a rule", - "default": true, - "enum": [ - true, - false - ] + "default": true }, "headers": { "type": "object", @@ -971,31 +963,19 @@ "type": "boolean", "title": "Whether strict transport security is enabled or not", "description": "If set to true, HSTS is enabled for 1 year. \nIf set to false, other properties are ignored.", - "default": null, - "enum": [ - true, - false - ] + "default": null }, "include_subdomains": { "type": "boolean", "title": "Whether the strict transport security policy should include all subdomains", "description": "More information: \nhttps://docs.upsun.com/define-routes/https.html#enable-http-strict-transport-security-hsts", - "default": false, - "enum": [ - true, - false - ] + "default": false }, "preload": { "type": "boolean", "title": "Whether the strict transport security policy should be preloaded in browsers", "description": "To add your website to the HSTS preload list: \nhttps://hstspreload.org/. \nThanks to this list, most browsers are informed that your site requires HSTS before an HSTS header response is even issued.\n", - "default": false, - "enum": [ - true, - false - ] + "default": false } }, "additionalProperties": false,