eddn-report: Bump all version checks to latest & EDDI report exception

* Raised all softwareVersion checks to latest releases.
* EDDI has an approachsettlement/1 issue that's been reported.
This commit is contained in:
Athanasius 2023-01-06 09:00:09 +00:00
parent d263b7f929
commit 2a461a9e46

View File

@ -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,26 @@ 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-rc1'):
if matches.group('schema_ref') == 'https://eddn.edcd.io/schemas/approachsettlement/1':
if matches.group('err_msg').startswith(
'Failed Validation "[<ValidationError: "\'Latitude\' is a required property">]"'
):
# Reported on Discord: <Failed Validation "[<ValidationError: "'Latitude' is a required property">]">
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 "[<ValidationError: "{\'type\': [\'array\', \'boolean\', \'integer\', \'number\', \'null\', \'object\', \'string\']} is not allowed for'