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"
@ -222,7 +222,7 @@
}, },
"cloudTint": { "cloudTint": {
"$ref": "#/$defs/color", "$ref": "#/$defs/color",
"description" : "Colour of the cloud layer. Only relevant if \"cloud\" has a value" "description": "Colour of the cloud layer. Only relevant if \"cloud\" has a value"
}, },
"cloud": { "cloud": {
"type": "string", "type": "string",
@ -254,7 +254,7 @@
"type": "number", "type": "number",
"minimum": 0, "minimum": 0,
"maximum": 1, "maximum": 1,
"description" : "How dense the fog is, if you put fog." "description": "How dense the fog is, if you put fog."
}, },
"fogSize": { "fogSize": {
"type": "number", "type": "number",
@ -272,7 +272,7 @@
"hasOxygen": { "hasOxygen": {
"type": "boolean", "type": "boolean",
"default": false, "default": false,
"description" : "Lets you survive on the planet without a suit." "description": "Lets you survive on the planet without a suit."
}, },
"hasAtmosphere": { "hasAtmosphere": {
"type": "boolean", "type": "boolean",
@ -372,7 +372,7 @@
"type": "number", "type": "number",
"default": 0, "default": 0,
"minimum": 0, "minimum": 0,
"description" : "Inner radius of the disk " "description": "Inner radius of the disk "
}, },
"outerRadius": { "outerRadius": {
"type": "number", "type": "number",
@ -382,11 +382,11 @@
"inclination": { "inclination": {
"type": "number", "type": "number",
"default": 0, "default": 0,
"description" : "Angle between the rings and the equatorial plane of the planet." "description": "Angle between the rings and the equatorial plane of the planet."
}, },
"longitudeOfAscendingNode": { "longitudeOfAscendingNode": {
"$ref": "#/$defs/angle", "$ref": "#/$defs/angle",
"description" : "Angle defining the point where the rings rise up from the planet's equatorial plane if inclination is nonzero." "description": "Angle defining the point where the rings rise up from the planet's equatorial plane if inclination is nonzero."
}, },
"texture": { "texture": {
"type": "string", "type": "string",
@ -395,11 +395,11 @@
"rotationSpeed": { "rotationSpeed": {
"type": "number", "type": "number",
"default": 0, "default": 0,
"description" : "Allows the rings to rotate." "description": "Allows the rings to rotate."
}, },
"curve": { "curve": {
"$ref": "#/$defs/curve", "$ref": "#/$defs/curve",
"description" : "Allows the rings to grow/shrink with time." "description": "Allows the rings to grow/shrink with time."
} }
} }
}, },
@ -417,12 +417,12 @@
"minHeight": { "minHeight": {
"type": "number", "type": "number",
"minimum": 0, "minimum": 0,
"description" : "The lowest points on your planet will be at this height." "description": "The lowest points on your planet will be at this height."
}, },
"maxHeight": { "maxHeight": {
"type": "number", "type": "number",
"minimum": 0, "minimum": 0,
"description" : "The highest points on your planet will be at this height." "description": "The highest points on your planet will be at this height."
} }
} }
}, },
@ -444,11 +444,11 @@
}, },
"inclination": { "inclination": {
"$ref": "#/$defs/angle", "$ref": "#/$defs/angle",
"description" : "Angle between the rings and the equatorial plane of the planet." "description": "Angle between the rings and the equatorial plane of the planet."
}, },
"longitudeOfAscendingNode": { "longitudeOfAscendingNode": {
"$ref": "#/$defs/angle", "$ref": "#/$defs/angle",
"description" : "Angle defining the point where the rings rise up from the planet's equatorial plane if inclination is nonzero." "description": "Angle defining the point where the rings rise up from the planet's equatorial plane if inclination is nonzero."
}, },
"randomSeed": { "randomSeed": {
"type": "integer", "type": "integer",
@ -467,7 +467,7 @@
"type": "number", "type": "number",
"default": 2000, "default": 2000,
"minimum": 0, "minimum": 0,
"description" : "Radius of the star." "description": "Radius of the star."
}, },
"tint": { "tint": {
"$ref": "#/$defs/color", "$ref": "#/$defs/color",
@ -490,11 +490,11 @@
"hasAtmosphere": { "hasAtmosphere": {
"type": "boolean", "type": "boolean",
"default": true, "default": true,
"description" : "The default sun has its own atmosphere that is different from regular planets. If you want that, set this to true." "description": "The default sun has its own atmosphere that is different from regular planets. If you want that, set this to true."
}, },
"curve": { "curve": {
"$ref": "#/$defs/curve", "$ref": "#/$defs/curve",
"description" : "Allows the star to shrink/grow over time." "description": "Allows the star to shrink/grow over time."
} }
} }
}, },
@ -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
}, },
@ -688,7 +692,7 @@
"properties": { "properties": {
"playerSpawnPoint": { "playerSpawnPoint": {
"$ref": "#/$defs/vector3", "$ref": "#/$defs/vector3",
"description" : "If you want the player to spawn on the new body, set a value for this. Press \"P\" in game with Debug mode on to have the game log the position you're looking at to find a good value for this." "description": "If you want the player to spawn on the new body, set a value for this. Press \"P\" in game with Debug mode on to have the game log the position you're looking at to find a good value for this."
}, },
"shipSpawnPoint": { "shipSpawnPoint": {
"$ref": "#/$defs/vector3" "$ref": "#/$defs/vector3"
@ -696,7 +700,7 @@
"startWithSuit": { "startWithSuit": {
"type": "boolean", "type": "boolean",
"default": false, "default": false,
"description" : "If you spawn on a planet with no oxygen, you probably want to set this to true ;)" "description": "If you spawn on a planet with no oxygen, you probably want to set this to true ;)"
} }
} }
}, },
@ -713,11 +717,11 @@
}, },
"frequency": { "frequency": {
"type": "string", "type": "string",
"description" : "The frequency ID of the signal. The built-in game values are \"Default\", \"Traveler\", \"Quantum\", \"EscapePod\", \"Statue\", \"WarpCore\", \"HideAndSeek\", and \"Radio\". You can also put a custom value." "description": "The frequency ID of the signal. The built-in game values are \"Default\", \"Traveler\", \"Quantum\", \"EscapePod\", \"Statue\", \"WarpCore\", \"HideAndSeek\", and \"Radio\". You can also put a custom value."
}, },
"name": { "name": {
"type": "string", "type": "string",
"description" : "The unique ID of the signal." "description": "The unique ID of the signal."
}, },
"audioClip": { "audioClip": {
"type": "string", "type": "string",
@ -768,7 +772,7 @@
"type": "number", "type": "number",
"default": 0, "default": 0,
"minimum": 0, "minimum": 0,
"description" : "Radius of the singularity. Note that this isn't the same as the event horizon, but includes the entire volume that has warped effects in it." "description": "Radius of the singularity. Note that this isn't the same as the event horizon, but includes the entire volume that has warped effects in it."
}, },
"pairedSingularity": { "pairedSingularity": {
"type": "string", "type": "string",
@ -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
}, },