Skip to content

Commit

Permalink
Merge pull request #61 from arihant2math/main
Browse files Browse the repository at this point in the history
waypoint and system symbol mocks
  • Loading branch information
space-admiral authored Dec 5, 2023
2 parents d2663cd + 564aecf commit 7d108a7
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 16 deletions.
2 changes: 1 addition & 1 deletion models/Chart.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "The chart of a system or waypoint, which makes the location visible to other agents.",
"properties": {
"waypointSymbol": {
"type": "string",
"$ref": "./WaypointSymbol.json",
"description": "The symbol of the waypoint."
},
"submittedBy": {
Expand Down
2 changes: 1 addition & 1 deletion models/MarketTransaction.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"type": "object",
"properties": {
"waypointSymbol": {
"type": "string",
"$ref": "./WaypointSymbol.json",
"description": "The symbol of the waypoint where the transaction took place."
},
"shipSymbol": {
Expand Down
6 changes: 2 additions & 4 deletions models/ScannedWaypoint.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@
"type": "object",
"properties": {
"symbol": {
"type": "string",
"minLength": 1,
"$ref": "./WaypointSymbol.json",
"description": "Symbol of the waypoint."
},
"type": {
"$ref": "./WaypointType.json"
},
"systemSymbol": {
"type": "string",
"minLength": 1,
"$ref": "./SystemSymbol.json",
"description": "Symbol of the system."
},
"x": {
Expand Down
4 changes: 2 additions & 2 deletions models/ShipNav.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"description": "The navigation information of the ship.",
"properties": {
"systemSymbol": {
"type": "string",
"$ref": "./SystemSymbol.json",
"description": "The system symbol of the ship's current location."
},
"waypointSymbol": {
"type": "string",
"$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."
},
"route": {
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": {
"type": "string",
"minLength": 1,
"$ref": "./SystemSymbol.json",
"description": "The symbol of the system the waypoint is in."
},
"x": {
Expand Down
2 changes: 1 addition & 1 deletion models/ShipyardTransaction.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Results of a transaction with a shipyard.",
"properties": {
"waypointSymbol": {
"type": "string",
"$ref": "./WaypointSymbol.json",
"description": "The symbol of the waypoint where the transaction took place."
},
"shipSymbol": {
Expand Down
7 changes: 7 additions & 0 deletions models/SystemSymbol.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "string",
"minLength": 1,
"x-faker": {
"fake": ["X1-{{random.alphaNumeric(5)}}"]
}
}
2 changes: 1 addition & 1 deletion models/SystemWaypoint.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"type": "object",
"properties": {
"symbol": {
"type": "string",
"$ref": "./WaypointSymbol.json",
"description": "The symbol of the waypoint."
},
"type": {
Expand Down
6 changes: 2 additions & 4 deletions models/Waypoint.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@
"type": "object",
"properties": {
"symbol": {
"type": "string",
"minLength": 1,
"$ref": "./WaypointSymbol.json",
"description": "Symbol fo the waypoint."
},
"type": {
"$ref": "./WaypointType.json"
},
"systemSymbol": {
"type": "string",
"minLength": 1,
"$ref": "./SystemSymbol.json",
"description": "The symbol of the system this waypoint belongs to."
},
"x": {
Expand Down
7 changes: 7 additions & 0 deletions models/WaypointSymbol.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "string",
"minLength": 1,
"x-faker": {
"fake": ["X1-{{random.alphaNumeric(5)}}-{{random.alphaNumeric(5)}}"]
}
}

0 comments on commit 7d108a7

Please sign in to comment.