Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove $ref suiblings.
  • Loading branch information
kjackson1998 committed Dec 5, 2023
commit 69994a383839cb2ed07a5161f1f1e61a6d2088b2
3 changes: 1 addition & 2 deletions models/Chart.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"description": "The chart of a system or waypoint, which makes the location visible to other agents.",
"properties": {
"waypointSymbol": {
"$ref": "./WaypointSymbol.json",
"description": "The symbol of the waypoint."
"$ref": "./WaypointSymbol.json"
},
"submittedBy": {
"type": "string",
Expand Down
3 changes: 1 addition & 2 deletions models/Contract.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
"description": "Type of contract."
},
"terms": {
"$ref": "./ContractTerms.json",
"description": "The terms to fulfill the contract."
"$ref": "./ContractTerms.json"
},
"accepted": {
"type": "boolean",
Expand Down
1 change: 1 addition & 0 deletions models/ContractPayment.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"type": "object",
"description": "Payments for the contract.",
"properties": {
"onAccepted": {
"type": "integer",
Expand Down
5 changes: 2 additions & 3 deletions models/ContractTerms.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"type": "object",
"description": "Terms of the contract needed to fulfill it.",
"description": "The terms to fulfill the contract.",
"properties": {
"deadline": {
"type": "string",
"format": "date-time",
"description": "The deadline for the contract."
},
"payment": {
"$ref": "./ContractPayment.json",
"description": "Payments for the contract."
"$ref": "./ContractPayment.json"
},
"deliver": {
"type": "array",
Expand Down
3 changes: 1 addition & 2 deletions models/Extraction.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"description": "Symbol of the ship that executed the extraction."
},
"yield": {
"$ref": "./ExtractionYield.json",
"description": "Yields from the extract operation."
"$ref": "./ExtractionYield.json"
}
},
"required": [
Expand Down
3 changes: 1 addition & 2 deletions models/ExtractionYield.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"description": "A yield from the extraction operation.",
"properties": {
"symbol": {
"$ref": "./TradeSymbol.json",
"description": "Symbol of the good that was extracted."
"$ref": "./TradeSymbol.json"
},
"units": {
"type": "integer",
Expand Down
3 changes: 1 addition & 2 deletions models/Faction.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"type": "object",
"properties": {
"symbol": {
"$ref": "./FactionSymbol.json",
"description": "Faction symbol."
"$ref": "./FactionSymbol.json"
},
"name": {
"type": "string",
Expand Down
3 changes: 1 addition & 2 deletions models/MarketTransaction.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"type": "object",
"properties": {
"waypointSymbol": {
"$ref": "./WaypointSymbol.json",
"description": "The symbol of the waypoint where the transaction took place."
"$ref": "./WaypointSymbol.json"
},
"shipSymbol": {
"type": "string",
Expand Down
6 changes: 2 additions & 4 deletions models/ScannedWaypoint.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@
"type": "object",
"properties": {
"symbol": {
"$ref": "./WaypointSymbol.json",
"description": "Symbol of the waypoint."
"$ref": "./WaypointSymbol.json"
},
"type": {
"$ref": "./WaypointType.json"
},
"systemSymbol": {
"$ref": "./SystemSymbol.json",
"description": "Symbol of the system."
"$ref": "./SystemSymbol.json"
},
"x": {
"type": "integer",
Expand Down
6 changes: 2 additions & 4 deletions models/ShipNav.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@
"description": "The navigation information of the ship.",
"properties": {
"systemSymbol": {
"$ref": "./SystemSymbol.json",
"description": "The system symbol of the ship's current location."
"$ref": "./SystemSymbol.json"
},
"waypointSymbol": {
"$ref": "./WaypointSymbol.json",
"description": "The waypoint symbol of the ship's current location, or if the ship is in-transit, the waypoint symbol of the ship's destination."
"$ref": "./WaypointSymbol.json"
},
"route": {
"$ref": "./ShipNavRoute.json"
Expand Down
4 changes: 1 addition & 3 deletions models/ShipNavRoute.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"$ref": "./ShipNavRouteWaypoint.json"
},
"departure": {
"deprecated": true,
"description": "Deprecated. Use origin instead.",
"$ref": "./ShipNavRouteWaypoint.json"
"$ref": "./ShipNavRouteWaypointDeprecated.json"
},
"origin": {
"$ref": "./ShipNavRouteWaypoint.json"
Expand Down
3 changes: 1 addition & 2 deletions models/ShipNavRouteWaypoint.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
"$ref": "./WaypointType.json"
},
"systemSymbol": {
"$ref": "./SystemSymbol.json",
"description": "The symbol of the system the waypoint is in."
"$ref": "./SystemSymbol.json"
},
"x": {
"type": "integer",
Expand Down
34 changes: 34 additions & 0 deletions models/ShipNavRouteWaypointDeprecated.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"type": "object",
"deprecated": true,
"description": "Deprecated. Use origin instead.",
"properties": {
"symbol": {
"type": "string",
"minLength": 1,
"description": "The symbol of the waypoint."
},
"type": {
"$ref": "./WaypointType.json"
},
"systemSymbol": {
"$ref": "./SystemSymbol.json",
"description": "The symbol of the system the waypoint is in."
},
"x": {
"type": "integer",
"description": "Position in the universe in the x axis."
},
"y": {
"type": "integer",
"description": "Position in the universe in the y axis."
}
},
"required": [
"symbol",
"type",
"systemSymbol",
"x",
"y"
]
}
3 changes: 1 addition & 2 deletions models/ShipyardTransaction.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"description": "Results of a transaction with a shipyard.",
"properties": {
"waypointSymbol": {
"$ref": "./WaypointSymbol.json",
"description": "The symbol of the waypoint where the transaction took place."
"$ref": "./WaypointSymbol.json"
},
"shipSymbol": {
"type": "string",
Expand Down
3 changes: 1 addition & 2 deletions models/Siphon.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
"description": "Symbol of the ship that executed the siphon."
},
"yield": {
"$ref": "./SiphonYield.json",
"description": "Yields from the siphon operation."
"$ref": "./SiphonYield.json"
}
},
"required": [
Expand Down
3 changes: 1 addition & 2 deletions models/SiphonYield.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"description": "A yield from the siphon operation.",
"properties": {
"symbol": {
"$ref": "./TradeSymbol.json",
"description": "Symbol of the good that was siphoned."
"$ref": "./TradeSymbol.json"
},
"units": {
"type": "integer",
Expand Down
3 changes: 1 addition & 2 deletions models/SystemWaypoint.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"type": "object",
"properties": {
"symbol": {
"$ref": "./WaypointSymbol.json",
"description": "The symbol of the waypoint."
"$ref": "./WaypointSymbol.json"
},
"type": {
"$ref": "./WaypointType.json"
Expand Down
6 changes: 2 additions & 4 deletions models/Waypoint.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@
"type": "object",
"properties": {
"symbol": {
"$ref": "./WaypointSymbol.json",
"description": "Symbol of the waypoint."
"$ref": "./WaypointSymbol.json"
},
"type": {
"$ref": "./WaypointType.json"
},
"systemSymbol": {
"$ref": "./SystemSymbol.json",
"description": "The symbol of the system this waypoint belongs to."
"$ref": "./SystemSymbol.json"
},
"x": {
"type": "integer",
Expand Down
3 changes: 1 addition & 2 deletions reference/SpaceTraders.json
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,7 @@
"schema": {
"properties": {
"faction": {
"$ref": "../models/FactionSymbol.json",
"example": "COSMIC"
"$ref": "../models/FactionSymbol.json"
},
"symbol": {
"description": "Your desired agent symbol. This will be a unique name used to represent your agent, and will be the prefix for your ships.",
Expand Down