generate extension
fix default bool and enum value.