codegen_text handling unions now
fixed adapter_api enum def bug which caused our codegen to fail badly