'Why does OpenApi generator name the class of service Api as "DefaultService" in Angular13

I add OpenApi Generator in my angular project, but when i generate the Api with the command " openapi-generator-cli generate -i ../openApi/src/main/resources/api.yml -g typescript-angular -o src/app/core/api/v1", the name of Api service generted is default.service.ts, how can I change the name generated ?

api.yml :

openapi: 3.0.3
info:
  title: Test
  description: 
  version: 1.0.0
servers:
  - url: /api
paths:
  /tests:
    $ref: './controllers/test.yml#/tests'

test.yml

tests:
  get:
    operationId: loadTests
    responses:
      '200':
        description: 
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '../model/test.yml#/b'

script added to package.json :

"generate:api": "openapi-generator-cli generate -i ../openApi/src/main/resources/api.yml -g typescript-angular -o src/app/core/api/v1" 

version of openApi :

"@openapitools/openapi-generator-cli": "^2.4.26",

image of files



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source