swagger-api/swagger-codegen-generators

[typescript] Incorrect `extends null<...>` declaration for map/dictionary-like schema definitions with `additionalProperties`

softworkz opened this issue · 1 comments

OpenApi Schema

    "MyDictionary": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    }

Generated TypeScript

/**
 * 
 * @export
 * @interface ProviderIdDictionary
 */
export interface ProviderIdDictionary extends null<String, string> {
    [key: string]: string;
}

Related: #691

@micryc @frantuma - The related issue is 4 years old. Is there any chance to get this fixed?