fmidev / fmi-avi-messageconverter-iwxxm

Conversion module for aviation IWXXM messages
MIT License
7 stars 5 forks source link

Empty SWXA analysis regions are not handled correctly #45

Closed petringo closed 3 years ago

petringo commented 3 years ago

SWX Advisory IWXXM serializer must produce

<iwxxm:region nilReason="http://codes.wmo.int/common/nil/nothingOfOperationalSignificance"/>

within iwxxm:SpaceWeatherAnalysis element when SpaceWeatherAdvisoryAnalysis.getRegions() returns empty list.

During parse an empty iwxxm:region should produce an empty list instead of a singleton list of empty SpaceWeatherRegion.