OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
где BaseType - не имеет дискриминатора, следовательно, эти объекты не образуют иерархию. В результате некорректно заполняются переменные шаблонов, в частности #vars и #allVars - в allVars "не попадают" значения из "родительского" типа (BaseType). В результате некорректно формируется код по шаблону modelGeneric.mustache что приводит к ошибке компиляции typescript.