diff --git a/schemas/commodity-README.md b/schemas/commodity-README.md index 220363a..6140346 100644 --- a/schemas/commodity-README.md +++ b/schemas/commodity-README.md @@ -51,6 +51,11 @@ In the list of commodites: Limpets - not purchasable in station market) or a *non-empty*`"legality":` string (not normally traded at this station market). +If the data is sourced from the journal folder: +- Remove the `$` prefix and `_name;` suffix from the `Name` field. +- As the Journal Market.json doesn't contain `economies` or `prohibited` data, + leave these entirely out of the message. You **MUST NOT** send empty lists. + #### Item Category Remove not only the `Category_Localised` key:values, but also the `Category` key:value pair from each Item. diff --git a/scripts/eddn-report-log-errors b/scripts/eddn-report-log-errors index 20a6fd7..62e3683 100755 --- a/scripts/eddn-report-log-errors +++ b/scripts/eddn-report-log-errors @@ -75,7 +75,7 @@ def process_file(input_file: str) -> None: ################################################################### if matches.group('software_name') == 'EDDiscovery': # https://github.com/EDDiscovery/EDDiscovery/releases/latest - if software_version >= semantic_version.Version.coerce('15.1.4.0'): + if software_version >= semantic_version.Version.coerce('16.0.5.0'): if matches.group('schema_ref') == 'https://eddn.edcd.io/schemas/outfitting/2': err_msg = matches.group('err_msg') if ( @@ -93,17 +93,33 @@ def process_file(input_file: str) -> None: elif matches.group('software_name') == 'EDDLite': # https://github.com/EDDiscovery/EDDLite/releases/latest - if software_version >= semantic_version.Version.coerce('2.3.0'): + if software_version >= semantic_version.Version.coerce('2.5.0'): print(line) elif matches.group('software_name') == 'EDDI': # https://github.com/EDCD/EDDI/releases/latest - if software_version >= semantic_version.Version.coerce('4.0.1'): - print(line) + if software_version >= semantic_version.Version.coerce('4.0.2'): + + if matches.group('schema_ref') == 'https://eddn.edcd.io/schemas/fsssignaldiscovered/1': + if matches.group('err_msg').startswith( + 'Failed Validation "[ + pass + + elif matches.group('schema_ref') == 'https://eddn.edcd.io/schemas/navroute/1': + if matches.group('err_msg').startswith( + 'Failed Validation "[ + pass + + else: + print(line) elif matches.group('software_name').startswith('E:D Market Connector'): # https://github.com/EDCD/EDMarketConnector/releases/latest - if software_version >= semantic_version.Version.coerce('5.5.0'): + if software_version >= semantic_version.Version.coerce('5.7.0'): if matches.group('schema_ref') == 'https://eddn.edcd.io/schemas/journal/1': if matches.group('err_msg').startswith( 'Failed Validation "[