java – OpenApi Generator to generate parameter with @RequestBody as String

I have the following OpenApi specs:

paths:
  /student:
    post:
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/Student"
      responses:
        204:


components:
  schemas:
    Student:
      type: object
      properties:
        name:
          type: string
        school:
          type: string

With org.openapitools.generator, it generates a controller with function like below

void addStudent(@RequestBody Student student) {
}

Is there any way to configure the generator to generate @RequestBody as String?

void addStudent(@RequestBody String student) {
}

Read more here: Source link