Skip to content

Commit af83978

Browse files
feba66Aeolun
andauthored
Next into main (#103)
* feat: documentation updates for 2.3 * feat: add module endpoints and other changes * fix: response type of registration endpoint * fix: hopefully proper formatting now * fix: nope, was still broken * fixed errors that openapi generator complained about --------- Co-authored-by: Bart Riepe <[email protected]>
1 parent 0c88bf6 commit af83978

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+604
-623
lines changed

.spectral.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
import ruleset from "https://stoplight.io/api/v1/projects/cHJqOjE3NTU4OQ/spectral.js?branch=main&token=e4f4ffbe-f8ad-4829-b09f-cf2703afac49";
2-
export default { extends: ruleset };
2+
export default {extends: ruleset};

.stoplight.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,11 @@
33
"formats": {
44
"openapi": {
55
"rootDir": "reference",
6-
"include": [
7-
"**"
8-
]
6+
"include": ["**"]
97
},
108
"json_schema": {
119
"rootDir": "models",
12-
"include": [
13-
"**"
14-
]
10+
"include": ["**"]
1511
},
1612
"markdown": {
1713
"rootDir": "docs"
@@ -20,4 +16,4 @@
2016
"rootDir": "assets/images"
2117
}
2218
}
23-
}
19+
}

models/ActivityLevel.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
{
22
"type": "string",
33
"description": "The activity level of a trade good. If the good is an import, this represents how strong consumption is. If the good is an export, this represents how strong the production is for the good. When activity is strong, consumption or production is near maximum capacity. When activity is weak, consumption or production is near minimum capacity.",
4-
"enum": [
5-
"WEAK",
6-
"GROWING",
7-
"STRONG",
8-
"RESTRICTED"
9-
],
4+
"enum": ["WEAK", "GROWING", "STRONG", "RESTRICTED"],
105
"x-enumDescriptions": {
116
"WEAK": "Indicates very low production or consumption activity. This may suggest a surplus in supply or a lack of demand.",
127
"GROWING": "Represents increasing activity in production or consumption, suggesting a developing market.",

models/Agent.json

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,5 @@
3333
"description": "How many ships are owned by the agent."
3434
}
3535
},
36-
"required": [
37-
"symbol",
38-
"headquarters",
39-
"credits",
40-
"startingFaction",
41-
"shipCount"
42-
]
36+
"required": ["symbol", "headquarters", "credits", "startingFaction", "shipCount"]
4337
}

models/Chart.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
"description": "The time the chart for this waypoint was submitted."
1616
}
1717
}
18-
}
18+
}

models/ConnectedSystem.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,5 @@
3131
"description": "The distance of this system to the connected Jump Gate."
3232
}
3333
},
34-
"required": [
35-
"symbol",
36-
"sectorSymbol",
37-
"type",
38-
"x",
39-
"y",
40-
"distance"
41-
]
42-
}
34+
"required": ["symbol", "sectorSymbol", "type", "x", "y", "distance"]
35+
}

models/Construction.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,5 @@
1818
"description": "Whether the waypoint has been constructed."
1919
}
2020
},
21-
"required": [
22-
"symbol",
23-
"materials",
24-
"isComplete"
25-
]
26-
}
21+
"required": ["symbol", "materials", "isComplete"]
22+
}

models/ConstructionMaterial.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,5 @@
1414
"description": "The number of units fulfilled toward the required amount."
1515
}
1616
},
17-
"required": [
18-
"tradeSymbol",
19-
"required",
20-
"fulfilled"
21-
]
22-
}
17+
"required": ["tradeSymbol", "required", "fulfilled"]
18+
}

models/Contract.json

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,7 @@
1414
},
1515
"type": {
1616
"type": "string",
17-
"enum": [
18-
"PROCUREMENT",
19-
"TRANSPORT",
20-
"SHUTTLE"
21-
],
17+
"enum": ["PROCUREMENT", "TRANSPORT", "SHUTTLE"],
2218
"description": "Type of contract."
2319
},
2420
"terms": {
@@ -46,13 +42,5 @@
4642
"description": "The time at which the contract is no longer available to be accepted"
4743
}
4844
},
49-
"required": [
50-
"id",
51-
"factionSymbol",
52-
"type",
53-
"terms",
54-
"accepted",
55-
"fulfilled",
56-
"expiration"
57-
]
58-
}
45+
"required": ["id", "factionSymbol", "type", "terms", "accepted", "fulfilled", "expiration"]
46+
}

models/ContractDeliverGood.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,5 @@
2121
"description": "The number of units fulfilled on this contract."
2222
}
2323
},
24-
"required": [
25-
"tradeSymbol",
26-
"destinationSymbol",
27-
"unitsRequired",
28-
"unitsFulfilled"
29-
]
30-
}
24+
"required": ["tradeSymbol", "destinationSymbol", "unitsRequired", "unitsFulfilled"]
25+
}

0 commit comments

Comments
 (0)