939 Commits

Author SHA1 Message Date
Athanasius
2a8d09e378
schemas: fcmaterials_capi: README: First cut 2022-09-02 16:27:48 +01:00
Athanasius
af2b29a4a4
schemas: fcmaterials_capi: Initial schema and README
* NB: The README is a straight copy of the _journal one right now.  Will fix
  later.
2022-09-02 15:41:07 +01:00
Athanasius
7111bdbbbb
scripts/test-schema: A *very* basic script to see if a schema works
* It's using `sys.argv`, not `argparse`.
* Thus there's no `--help`.
* Supply it with: 1) Filename of a schema definition, 2) filename of a full
  EDDN message text to test for compliance.
* No output if both schema and message load *and* the message passes the
  schema.  Else you'll get python exception output from `jsonschema.validate()`.
2022-09-02 15:39:20 +01:00
Athanasius
33d6e8fe2e
schemas: fcmaterials_journal: Fix $id from rename 2022-09-02 13:48:37 +01:00
Athanasius
b3876824f7
schemas/README: Document $id conventions
1. Get the designation of the version correct.
2. That empty `#` fragment is a SHOULD NOT, so just don't.
3. Append `_<source>` to the "filename" where necessary.
2022-09-02 13:46:18 +01:00
Athanasius
08127d261f
schemas/README: Per-schema README is now mandatory
I think I only made this 'SHOULD' before because at that stage I'd not yet
written the README files for the legacy schemas.
2022-09-02 13:38:53 +01:00
Athanasius
2eb213d766
schemas/TEMPLATES/journal: Remove the # 'fragment' from end of $id
As per <https://json-schema.org/draft/2020-12/json-schema-core.html#section-8.2.1>

> Therefore, "$id" MUST NOT contain a non-empty fragment, and SHOULD NOT contain an empty fragment.
2022-09-02 13:36:43 +01:00
Athanasius
5bcdfadb09
schemas: Rename Journal-only to fcmaterials_journal/1 2022-09-02 13:21:03 +01:00
Athanasius
61ef74492d
Revert "schemas: fcmaterials: Adjust to allow for CAPI-sourced data"
This reverts commit f4b9eab178efd2ea62e780b1c98ad5f8cf151e55.
2022-09-02 13:19:46 +01:00
Athanasius
f4b9eab178 schemas: fcmaterials: Adjust to allow for CAPI-sourced data
* Add new mandatory `data-source` field.
* `CarrierName` now optional (not in CAPI data).
* `Items` is defined a lot more loosely, due to Journal vs CAPI
  differences.
2022-08-31 15:23:06 +00:00
Athanasius
f4ab9eb35a
schemas: fcmaterials/1: Add README 2022-08-30 17:23:01 +01:00
Athanasius
2d2a205c7a
schemas: New fcmaterials/1 based on the *Journal* data source only 2022-08-30 17:23:00 +01:00
Athanasius
6d992307ce eddn-report: Bump EDD to 15.1.2.0, and comment out previous 'catch'
* This time I want to keep the example around for future use.
2022-08-26 07:42:28 +00:00
Athanasius
749d1aad3e eddn-report: str.startswith() doesn't do regex
I brainfarted, slinging a `.+` into this to generalise it, when the code
is using `str.startswith()`, not a regex match.

So, use two tests, `.startswith()` for the static portion, then a
`.find()` for the remainder after the variant part.
2022-08-24 07:17:37 +00:00
Athanasius
47532262c9 eddn-report: Generalise that "Turkish lower case i" rule 2022-08-23 07:48:50 +00:00
Athanasius
19eb012e1f eddn-report: Bump EDDLite to 2.3.0 2022-08-22 15:55:14 +00:00
Athanasius
59f5536a02 eddn-report: EDDiscovery outfitting/2 unicode 'i' 2022-08-22 07:19:59 +00:00
Athanasius
9fca2e166e Merge branch 'develop' of github.com:EDCD/EDDN into develop 2022-08-22 07:14:29 +00:00
Athanasius
14497f4230 eddn-report-log-errors: Bump EDDiscovery to 15.1.1.0 2022-08-18 10:32:42 +00:00
Athanasius
930632b0e9
README: Change Discord URL to channel-specific one. 2022-07-26 12:43:40 +01:00
Athanasius
a7b96c3228
scripts/eddn errors: Use 'in' form for EVA variants 2022-06-24 14:52:43 +01:00
Athanasius
4da53bcc40
Merge branch 'develop' of github.com:EDCD/EDDN into develop 2022-06-24 14:48:48 +01:00
Athanasius
723e966b37
docs/README schemas: Be explicit about sub-second timestamp resolution 2022-06-24 14:48:11 +01:00
Athanasius
3fa5012139 scripts/eddn-errors: EDMC - Put back in trap for mystery disallowed 2022-06-20 09:56:40 +00:00
Athanasius
83a7d451ef scripts/eddn-errors: EDMC - two fsssignaldiscovered issues 2022-06-19 10:37:20 +00:00
Athanasius
159c02caf1 scripts/eddn-errors: Also ignore "EVA [Android]" 2022-06-19 10:31:19 +00:00
Athanasius
353c5a2381 scripts/eddn-errors: EDSM - Console version now 1.0.2 2022-06-19 10:26:31 +00:00
Athanasius
bd7a0d6ab9 scripts/eddn-errors: EDDLite - remove traps 2022-06-19 10:23:37 +00:00
Athanasius
e297f24c73 scripts/eddn-errors: EDD version now 2.2.0 2022-06-19 10:23:03 +00:00
Athanasius
75f744abe5 scripts/eddn-errors: EDD shipyard/outfitting trap removed 2022-06-19 10:22:22 +00:00
Athanasius
13215806e4 scripts/eddn-errors: EDD approachsettlement/_Localised trap removed 2022-06-19 10:21:41 +00:00
Athanasius
8e3e279592 scripts/eddn-errors: EDD approachsettlement/Latitude trap removed 2022-06-19 10:20:52 +00:00
Athanasius
4ceac7bc8b scripts/eddn-errors: Bump EDD to 15.0.4.0 2022-06-19 10:20:32 +00:00
Athanasius
651bf998a7 scripts/eddn-errors: Remove EDMC approachsetttlemtn/missing Latitude trap 2022-06-19 10:18:27 +00:00
Athanasius
f6345b1705 eddn/report-errors: Remove other EDMC misc trap 2022-06-19 10:17:13 +00:00
Athanasius
66dfedd2af scripts/eddn-errors: Remove EDMC misc errors trap 2022-06-19 10:16:40 +00:00
Athanasius
81344cb67a scripts/eddn-errors: Remove EDMC codexentry trap 2022-06-19 10:16:04 +00:00
Athanasius
ff83ede948
Gateway: Remove all form-encoded support
This causes issues, at the least, with compressed messages that 'look' like
they decompressed body is form-encoded.  18385 messages in the last month
rejected due to this.

No actually valid form-encoded messages in that time frame.
2022-06-16 13:27:11 +01:00
Athanasius
a6fa60431a
Merge pull request #191 from EDCD/enhancement/152/schema-fsssignaldiscovered
schemas/fsssignaldiscovered: Rework based on in-game findings
2022-06-15 14:08:30 +01:00
Athanasius
56b4e20238
Settings.py: Add missing / for fsssignaldiscovered/1 schema 2022-06-15 14:03:02 +01:00
Athanasius
5d945297e1
schemas/fsssignaldiscovered: timestamp required per signal 2022-06-15 12:42:53 +01:00
Athanasius
3dbfd18188
schemas/fsssignaldiscovered: Rework for per-signal timestamp & misc. clarifications
* Per-signal `timestamp` due to the nature of USS signals.
* Keeping `message`->`timestamp` so any Listener relying on it being there
  isn't tripped up (it's present in all other schemas).
* Specifiy that each `signals` member should have `event` key/value pair
  removed.
* Mandate removal of `SystemAddress` from each `signals` member.
* Receivers: Only `horizons` and `odyssey` augmentations are optional.
* Updated examples for these changes.
2022-06-15 11:52:25 +01:00
Athanasius
d33c752c36
schemas/fsssignaldiscovered: README: Remove timestamp/SystemAddress from each signal 2022-06-14 14:03:49 +01:00
Athanasius
86f56eaac2
schemas/fsssignaldiscovered README: Reworked for changed schema
* Purely event-based batching, no timer.
* Outline Horizons/Odyssey differences.
* Point out that USS are manually scanned, so different in time nature.
* StarSystem renamed from systemName.
* StarSystem and StarPos now mandatory.
2022-06-14 14:01:36 +01:00
Athanasius
329d59831f
schemas/fsssignaldiscovered: Rework based on in-game findings
1. Unix, not DOS, line-endings.
2. `message`->`timestamp` instead of per signal.
3. `message`->`SystemAddress` instead of per signal.
4. `StarSystem` and `StarPos` augmentations now mandatory.
2022-06-14 13:59:13 +01:00
Athanasius
04c3d4f270
Merge pull request #154 from norohind/feature/152/FSSSignalDiscovered
FSSSignalDiscovered event support
2022-06-14 13:18:06 +01:00
732de9bdd6
FSSSignalDiscovered doc 2022-06-13 22:40:08 +03:00
fb9904306b
FSSSignalDiscovered doc: add examples 2022-06-13 22:40:08 +03:00
03caeaa20c
FSSSignalDiscovered: initial documentation 2022-06-13 22:40:05 +03:00
6dbc9e392a
FSSSignalDiscovered: don't pass $USS_Type_MissionTarget; USS_Type 2022-06-13 22:36:12 +03:00