schemas: outfitting: README: Initial version

This commit is contained in:
Athanasius 2021-11-01 15:11:15 +00:00
parent 6c1d8cff92
commit a32d6e2ea3
No known key found for this signature in database
GPG Key ID: AE3E527847057C7D

View File

@ -0,0 +1,41 @@
# EDDN Outfitting Schema
## Introduction
Here we document how to take data from an ED `Outfitting` Journal
Event and properly structure it for sending to EDDN.
Please consult [EDDN Schemas README](./README-EDDN-schemas.md) for general
documentation for a schema such as this.
## Senders
The primary data source for this schema is the ED Journal event
`Outfitting`.
You MAY also source this data from the CAPI `/shipyard` endpoint. See
[commodity-README.md#using-capi-data](commodity-README.md#using-capi-data)
for guidance on this.
You only need the `name` key's value for each member of the `modules` array.
### Key Renames
Many of the key names have a different case defined in this schema, make
sure you are renaming them as appropriate.
### Elisions
Remove items whose availability depends on the Cmdr's status rather than on the
station. Namely:
- Items that aren't weapons/utilities (`Hpt_*`), standard/internal
modules (`Int_*`) or armour (`*_Armour_*`) (i.e. bobbleheads, decals,
paintjobs and shipkits). This is enforced by the schema.
- Items that have a non-null `"sku"` property, unless
it's `"ELITE_HORIZONS_V_PLANETARY_LANDINGS"` (i.e. PowerPlay and tech
broker items).
- The `"Int_PlanetApproachSuite"` module (for historical reasons).
### Augmentations
#### horizons flag
You SHOULD add this key/value pair, using the value from the `LoadGame` event.
#### odyssey flag
You SHOULD add this key/value pair, using the value from the `LoadGame` event.