forked from loafle/openapi-generator-original
Commit e3d04ee01 (issue #5240) introduced unsafe add/put methods for optional list/map parameters. This change maintains the spirit of issue #5240 (optional containers are null by default) while still making add/put calls safe. It does this by checking for null first and, if so, initializing it with an empty container. Also updated the affected samples using the various scripts in bin/.