Use draft-07 schema, fix bools, formatting

This commit is contained in:
Raicuparta 2022-04-18 13:50:07 +02:00
parent 4cda6059c2
commit dc8c72e480

View File

@ -1,5 +1,5 @@
{ {
"$schema": "https://json-schema.org/draft/2020-12/schema", "$schema": "https://json-schema.org/draft-07/schema",
"$docs": { "$docs": {
"title": "Celestial Body Schema", "title": "Celestial Body Schema",
"description": "Schema for a celestial body in New Horizons" "description": "Schema for a celestial body in New Horizons"
@ -615,7 +615,11 @@
"properties": { "properties": {
"revealOn": { "revealOn": {
"type": "string", "type": "string",
"enum": [ "enter", "observe", "snapshot" ], "enum": [
"enter",
"observe",
"snapshot"
],
"description": "'enter', 'observe', or 'snapshot' what needs to be done to the volume to unlock the facts" "description": "'enter', 'observe', or 'snapshot' what needs to be done to the volume to unlock the facts"
}, },
"reveals": { "reveals": {
@ -657,7 +661,7 @@
"description": "The ID of the entry this location is for" "description": "The ID of the entry this location is for"
}, },
"cloaked": { "cloaked": {
"type": "bool", "type": "boolean",
"description": "Whether this entry location is in a cloaking field", "description": "Whether this entry location is in a cloaking field",
"default": false "default": false
}, },
@ -919,7 +923,7 @@
"default": 1 "default": 1
}, },
"invisibleWhenHidden": { "invisibleWhenHidden": {
"type": "bool", "type": "boolean",
"description": "Hide the planet completely if unexplored instead of showing an outline.", "description": "Hide the planet completely if unexplored instead of showing an outline.",
"default": false "default": false
}, },