Skip to content

Commit afeea20

Browse files
author
Antonis Kalipetis
authored
Merge pull request #247 from cborup/main
Remove enum variants from boolean fields in the Upsun JSON schema,
2 parents c02c91d + c398d60 commit afeea20

File tree

1 file changed

+5
-25
lines changed

1 file changed

+5
-25
lines changed

validator/schema/upsun.json

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,7 @@
114114
"enabled": {
115115
"type": "boolean",
116116
"title": "Whether the preflight security blocks are enabled",
117-
"description": "Must be a boolean",
118-
"enum": [
119-
true,
120-
false
121-
]
117+
"description": "Must be a boolean"
122118
},
123119
"ignored_rules": {
124120
"type": "array",
@@ -275,11 +271,7 @@
275271
"allow": {
276272
"type": "boolean",
277273
"title": "Whether to allow serving files which don’t match a rule",
278-
"default": true,
279-
"enum": [
280-
true,
281-
false
282-
]
274+
"default": true
283275
},
284276
"headers": {
285277
"type": "object",
@@ -971,31 +963,19 @@
971963
"type": "boolean",
972964
"title": "Whether strict transport security is enabled or not",
973965
"description": "If set to true, HSTS is enabled for 1 year. \nIf set to false, other properties are ignored.",
974-
"default": null,
975-
"enum": [
976-
true,
977-
false
978-
]
966+
"default": null
979967
},
980968
"include_subdomains": {
981969
"type": "boolean",
982970
"title": "Whether the strict transport security policy should include all subdomains",
983971
"description": "More information: \nhttps://docs.upsun.com/define-routes/https.html#enable-http-strict-transport-security-hsts",
984-
"default": false,
985-
"enum": [
986-
true,
987-
false
988-
]
972+
"default": false
989973
},
990974
"preload": {
991975
"type": "boolean",
992976
"title": "Whether the strict transport security policy should be preloaded in browsers",
993977
"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",
994-
"default": false,
995-
"enum": [
996-
true,
997-
false
998-
]
978+
"default": false
999979
}
1000980
},
1001981
"additionalProperties": false,

0 commit comments

Comments
 (0)