Skip to content

Next into main #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Mar 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .spectral.mjs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import ruleset from "https://stoplight.io/api/v1/projects/cHJqOjE3NTU4OQ/spectral.js?branch=main&token=e4f4ffbe-f8ad-4829-b09f-cf2703afac49";
export default { extends: ruleset };
export default {extends: ruleset};
10 changes: 3 additions & 7 deletions .stoplight.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,11 @@
"formats": {
"openapi": {
"rootDir": "reference",
"include": [
"**"
]
"include": ["**"]
},
"json_schema": {
"rootDir": "models",
"include": [
"**"
]
"include": ["**"]
},
"markdown": {
"rootDir": "docs"
Expand All @@ -20,4 +16,4 @@
"rootDir": "assets/images"
}
}
}
}
7 changes: 1 addition & 6 deletions models/ActivityLevel.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
{
"type": "string",
"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.",
"enum": [
"WEAK",
"GROWING",
"STRONG",
"RESTRICTED"
],
"enum": ["WEAK", "GROWING", "STRONG", "RESTRICTED"],
"x-enumDescriptions": {
"WEAK": "Indicates very low production or consumption activity. This may suggest a surplus in supply or a lack of demand.",
"GROWING": "Represents increasing activity in production or consumption, suggesting a developing market.",
Expand Down
8 changes: 1 addition & 7 deletions models/Agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,5 @@
"description": "How many ships are owned by the agent."
}
},
"required": [
"symbol",
"headquarters",
"credits",
"startingFaction",
"shipCount"
]
"required": ["symbol", "headquarters", "credits", "startingFaction", "shipCount"]
}
2 changes: 1 addition & 1 deletion models/Chart.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@
"description": "The time the chart for this waypoint was submitted."
}
}
}
}
11 changes: 2 additions & 9 deletions models/ConnectedSystem.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,5 @@
"description": "The distance of this system to the connected Jump Gate."
}
},
"required": [
"symbol",
"sectorSymbol",
"type",
"x",
"y",
"distance"
]
}
"required": ["symbol", "sectorSymbol", "type", "x", "y", "distance"]
}
8 changes: 2 additions & 6 deletions models/Construction.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,5 @@
"description": "Whether the waypoint has been constructed."
}
},
"required": [
"symbol",
"materials",
"isComplete"
]
}
"required": ["symbol", "materials", "isComplete"]
}
8 changes: 2 additions & 6 deletions models/ConstructionMaterial.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,5 @@
"description": "The number of units fulfilled toward the required amount."
}
},
"required": [
"tradeSymbol",
"required",
"fulfilled"
]
}
"required": ["tradeSymbol", "required", "fulfilled"]
}
18 changes: 3 additions & 15 deletions models/Contract.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@
},
"type": {
"type": "string",
"enum": [
"PROCUREMENT",
"TRANSPORT",
"SHUTTLE"
],
"enum": ["PROCUREMENT", "TRANSPORT", "SHUTTLE"],
"description": "Type of contract."
},
"terms": {
Expand Down Expand Up @@ -46,13 +42,5 @@
"description": "The time at which the contract is no longer available to be accepted"
}
},
"required": [
"id",
"factionSymbol",
"type",
"terms",
"accepted",
"fulfilled",
"expiration"
]
}
"required": ["id", "factionSymbol", "type", "terms", "accepted", "fulfilled", "expiration"]
}
9 changes: 2 additions & 7 deletions models/ContractDeliverGood.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,5 @@
"description": "The number of units fulfilled on this contract."
}
},
"required": [
"tradeSymbol",
"destinationSymbol",
"unitsRequired",
"unitsFulfilled"
]
}
"required": ["tradeSymbol", "destinationSymbol", "unitsRequired", "unitsFulfilled"]
}
7 changes: 2 additions & 5 deletions models/ContractPayment.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,5 @@
"description": "The amount of credits received when the contract is fulfilled."
}
},
"required": [
"onAccepted",
"onFulfilled"
]
}
"required": ["onAccepted", "onFulfilled"]
}
7 changes: 2 additions & 5 deletions models/ContractTerms.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,5 @@
}
}
},
"required": [
"deadline",
"payment"
]
}
"required": ["deadline", "payment"]
}
8 changes: 2 additions & 6 deletions models/Cooldown.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,5 @@
"description": "The date and time when the cooldown expires in ISO 8601 format"
}
},
"required": [
"shipSymbol",
"totalSeconds",
"remainingSeconds"
]
}
"required": ["shipSymbol", "totalSeconds", "remainingSeconds"]
}
7 changes: 2 additions & 5 deletions models/Extraction.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,5 @@
"$ref": "./ExtractionYield.json"
}
},
"required": [
"shipSymbol",
"yield"
]
}
"required": ["shipSymbol", "yield"]
}
7 changes: 2 additions & 5 deletions models/ExtractionYield.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,5 @@
"description": "The number of units extracted that were placed into the ship's cargo hold."
}
},
"required": [
"symbol",
"units"
]
}
"required": ["symbol", "units"]
}
10 changes: 2 additions & 8 deletions models/Faction.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,5 @@
"description": "Whether or not the faction is currently recruiting new agents."
}
},
"required": [
"symbol",
"name",
"description",
"traits",
"isRecruiting"
]
}
"required": ["symbol", "name", "description", "traits", "isRecruiting"]
}
2 changes: 1 addition & 1 deletion models/FactionSymbol.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
"SHADOW",
"ETHEREAL"
]
}
}
8 changes: 2 additions & 6 deletions models/FactionTrait.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,5 @@
"description": "A description of the trait."
}
},
"required": [
"symbol",
"name",
"description"
]
}
"required": ["symbol", "name", "description"]
}
128 changes: 64 additions & 64 deletions models/FactionTraitSymbol.json
Original file line number Diff line number Diff line change
@@ -1,65 +1,65 @@
{
"type": "string",
"description": "The unique identifier of the trait.",
"enum": [
"BUREAUCRATIC",
"SECRETIVE",
"CAPITALISTIC",
"INDUSTRIOUS",
"PEACEFUL",
"DISTRUSTFUL",
"WELCOMING",
"SMUGGLERS",
"SCAVENGERS",
"REBELLIOUS",
"EXILES",
"PIRATES",
"RAIDERS",
"CLAN",
"GUILD",
"DOMINION",
"FRINGE",
"FORSAKEN",
"ISOLATED",
"LOCALIZED",
"ESTABLISHED",
"NOTABLE",
"DOMINANT",
"INESCAPABLE",
"INNOVATIVE",
"BOLD",
"VISIONARY",
"CURIOUS",
"DARING",
"EXPLORATORY",
"RESOURCEFUL",
"FLEXIBLE",
"COOPERATIVE",
"UNITED",
"STRATEGIC",
"INTELLIGENT",
"RESEARCH_FOCUSED",
"COLLABORATIVE",
"PROGRESSIVE",
"MILITARISTIC",
"TECHNOLOGICALLY_ADVANCED",
"AGGRESSIVE",
"IMPERIALISTIC",
"TREASURE_HUNTERS",
"DEXTEROUS",
"UNPREDICTABLE",
"BRUTAL",
"FLEETING",
"ADAPTABLE",
"SELF_SUFFICIENT",
"DEFENSIVE",
"PROUD",
"DIVERSE",
"INDEPENDENT",
"SELF_INTERESTED",
"FRAGMENTED",
"COMMERCIAL",
"FREE_MARKETS",
"ENTREPRENEURIAL"
]
}
"type": "string",
"description": "The unique identifier of the trait.",
"enum": [
"BUREAUCRATIC",
"SECRETIVE",
"CAPITALISTIC",
"INDUSTRIOUS",
"PEACEFUL",
"DISTRUSTFUL",
"WELCOMING",
"SMUGGLERS",
"SCAVENGERS",
"REBELLIOUS",
"EXILES",
"PIRATES",
"RAIDERS",
"CLAN",
"GUILD",
"DOMINION",
"FRINGE",
"FORSAKEN",
"ISOLATED",
"LOCALIZED",
"ESTABLISHED",
"NOTABLE",
"DOMINANT",
"INESCAPABLE",
"INNOVATIVE",
"BOLD",
"VISIONARY",
"CURIOUS",
"DARING",
"EXPLORATORY",
"RESOURCEFUL",
"FLEXIBLE",
"COOPERATIVE",
"UNITED",
"STRATEGIC",
"INTELLIGENT",
"RESEARCH_FOCUSED",
"COLLABORATIVE",
"PROGRESSIVE",
"MILITARISTIC",
"TECHNOLOGICALLY_ADVANCED",
"AGGRESSIVE",
"IMPERIALISTIC",
"TREASURE_HUNTERS",
"DEXTEROUS",
"UNPREDICTABLE",
"BRUTAL",
"FLEETING",
"ADAPTABLE",
"SELF_SUFFICIENT",
"DEFENSIVE",
"PROUD",
"DIVERSE",
"INDEPENDENT",
"SELF_INTERESTED",
"FRAGMENTED",
"COMMERCIAL",
"FREE_MARKETS",
"ENTREPRENEURIAL"
]
}
7 changes: 2 additions & 5 deletions models/JumpGate.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,5 @@
}
}
},
"required": [
"symbol",
"connections"
]
}
"required": ["symbol", "connections"]
}
Loading
Loading