jono-tt / edifact-lib

Read and Write EDIFact based on JSON Schema's
10 stars 5 forks source link

handling empty data elements #5

Closed itachiazhar closed 5 years ago

itachiazhar commented 5 years ago
  1. Adding support to handle empty data segment.
  2. e.g. FTX+AAI+++GENERAL INFO OR REMARKS FOR THE BOOKING CONFIRMATION' will output to FTX+AAI+GENERAL INFO OR REMARKS FOR THE BOOKING CONFIRMATION' when converting back to EDI from JSON
  3. Adding this change to get the expected result which is to have the same string generated from the json from which the json was generated from
jono-tt commented 5 years ago

Thanks for submitting. Would you be able to add a test to show this working?

itachiazhar commented 5 years ago

I was treating segmentgroup childs as dataelement and datacomponent.