fix: clean up docs for the api

This commit is contained in:
Space Admiral 2022-10-27 21:09:27 -07:00
parent fb825f60f7
commit f5cf294082
18 changed files with 1595 additions and 2139 deletions

View File

@ -20,7 +20,6 @@
] ]
}, },
"terms": { "terms": {
"type": "object",
"$ref": "./ContractTerms.json" "$ref": "./ContractTerms.json"
}, },
"accepted": { "accepted": {

View File

@ -1,5 +1,5 @@
{ {
"description": "The details of a procurement contract. Includes the type of good, units needed, and the destination.", "description": "The details of a delivery contract. Includes the type of good, units needed, and the destination.",
"type": "object", "type": "object",
"properties": { "properties": {
"tradeSymbol": { "tradeSymbol": {

View File

@ -7,16 +7,12 @@
"description": "The deadline for the contract." "description": "The deadline for the contract."
}, },
"payment": { "payment": {
"type": "object",
"$ref": "./ContractPayment.json" "$ref": "./ContractPayment.json"
}, },
"procurement": { "deliver": {
"type": "array", "type": "array",
"uniqueItems": true,
"minItems": 1,
"items": { "items": {
"type": "object", "$ref": "./ContractDeliverGood.json"
"$ref": "./ContractProcurement.json"
} }
} }
}, },

View File

@ -7,7 +7,6 @@
"minLength": 1 "minLength": 1
}, },
"yield": { "yield": {
"type": "object",
"$ref": "./ExtractionYield.json" "$ref": "./ExtractionYield.json"
} }
}, },

View File

@ -21,7 +21,6 @@
"traits": { "traits": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "./FactionTrait.json" "$ref": "./FactionTrait.json"
} }
} }

View File

@ -8,11 +8,9 @@
"minLength": 8 "minLength": 8
}, },
"registration": { "registration": {
"type": "object",
"$ref": "./ShipRegistration.json" "$ref": "./ShipRegistration.json"
}, },
"nav": { "nav": {
"type": "object",
"$ref": "./ShipNav.json" "$ref": "./ShipNav.json"
}, },
"frame": { "frame": {

View File

@ -6,6 +6,11 @@
"description": "The max number of items that can be stored in the cargo hold.", "description": "The max number of items that can be stored in the cargo hold.",
"minimum": 0 "minimum": 0
}, },
"units": {
"type": "integer",
"description": "The number of items currently stored in the cargo hold.",
"minimum": 0
},
"inventory": { "inventory": {
"type": "array", "type": "array",
"description": "The items currently in the cargo hold.", "description": "The items currently in the cargo hold.",
@ -16,6 +21,7 @@
}, },
"required": [ "required": [
"capacity", "capacity",
"units",
"inventory" "inventory"
] ]
} }

View File

@ -5,13 +5,15 @@
"symbol": { "symbol": {
"type": "string", "type": "string",
"enum": [ "enum": [
"MODULE_FUEL_TANK",
"MODULE_CARGO_HOLD",
"MODULE_CREW_QUARTERS",
"MODULE_ENVOY_QUARTERS",
"MODULE_PASSENGER_CABIN", "MODULE_PASSENGER_CABIN",
"MODULE_ENVOY_QUARTERS",
"MODULE_MICRO_REFINERY", "MODULE_MICRO_REFINERY",
"MODULE_JUMP_DRIVE" "MODULE_MINERAL_PROCESSOR",
"MODULE_CARGO_HOLD",
"MODULE_JUMP_DRIVE_I",
"MODULE_JUMP_DRIVE_II",
"MODULE_JUMP_DRIVE_III",
"MODULE_CREW_QUARTERS"
] ]
}, },
"name": { "name": {

View File

@ -3,12 +3,10 @@
"description": "The routing information for the ship's most recent transit or current location.", "description": "The routing information for the ship's most recent transit or current location.",
"properties": { "properties": {
"destination": { "destination": {
"type": "object", "$ref": "./ShipNavRouteWaypoint.json"
"$ref": "./Waypoint.json"
}, },
"departure": { "departure": {
"type": "object", "$ref": "./ShipNavRouteWaypoint.json"
"$ref": "./Waypoint.json"
}, },
"arrival": { "arrival": {
"type": "string", "type": "string",

View File

@ -0,0 +1,30 @@
{
"description": "The destination or departure of a ships nav route.",
"type": "object",
"properties": {
"symbol": {
"type": "string",
"minLength": 1
},
"type": {
"$ref": "./WaypointType.json"
},
"systemSymbol": {
"type": "string",
"minLength": 1
},
"x": {
"type": "integer"
},
"y": {
"type": "integer"
}
},
"required": [
"symbol",
"type",
"systemSymbol",
"x",
"y"
]
}

View File

@ -14,10 +14,5 @@
"type": "integer", "type": "integer",
"description": "The number of module slots required for installation." "description": "The number of module slots required for installation."
} }
}, }
"required": [
"power",
"crew",
"slots"
]
} }

View File

@ -11,7 +11,6 @@
"type": "array", "type": "array",
"description": "A list of deposits that can be found at this location.", "description": "A list of deposits that can be found at this location.",
"items": { "items": {
"type": "object",
"$ref": "./SurveyDeposit.json" "$ref": "./SurveyDeposit.json"
} }
}, },

View File

@ -34,20 +34,14 @@
"waypoints": { "waypoints": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "./SystemWaypoint.json" "$ref": "./SystemWaypoint.json"
} }
}, },
"factions": { "factions": {
"type": "array", "type": "array",
"items": { "items": {
"type": "object",
"$ref": "./SystemFaction.json" "$ref": "./SystemFaction.json"
} }
},
"chart": {
"type": "object",
"$ref": "./Chart.json"
} }
}, },
"required": [ "required": [
@ -57,7 +51,6 @@
"x", "x",
"y", "y",
"waypoints", "waypoints",
"factions", "factions"
"chart"
] ]
} }

View File

@ -2,8 +2,7 @@
"type": "object", "type": "object",
"properties": { "properties": {
"symbol": { "symbol": {
"type": "string", "type": "string"
"minLength": 1
} }
}, },
"required": [ "required": [

View File

@ -25,12 +25,8 @@
"$ref": "./WaypointOrbital.json" "$ref": "./WaypointOrbital.json"
} }
}, },
"factions": { "faction": {
"type": "array", "$ref": "./Faction.json"
"description": "The factions that are active on the waypoint.",
"items": {
"$ref": "./WaypointFaction.json"
}
}, },
"traits": { "traits": {
"type": "array", "type": "array",
@ -50,8 +46,6 @@
"x", "x",
"y", "y",
"orbitals", "orbitals",
"factions", "traits"
"traits",
"chart"
] ]
} }

View File

@ -57,7 +57,9 @@
"BARREN", "BARREN",
"TEMPERATE", "TEMPERATE",
"JUNGLE", "JUNGLE",
"OCEAN" "OCEAN",
"MARKETPLACE",
"SHIPYARD"
] ]
}, },
"name": { "name": {

View File

@ -9,6 +9,7 @@
"JUMP_GATE", "JUMP_GATE",
"ASTEROID_FIELD", "ASTEROID_FIELD",
"DEBRIS_FIELD", "DEBRIS_FIELD",
"GRAVITY_WELL" "GRAVITY_WELL",
"NEBULA"
] ]
} }

File diff suppressed because it is too large Load Diff