mrin9 / RapiPdf

PDF generation from OpenAPI / Swagger Spec
https://mrin9.github.io/RapiPdf
MIT License
282 stars 102 forks source link

content application/json in header return error : rapipdf-min.js:33145 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'deprecated') #125

Open mdaneri opened 1 year ago

mdaneri commented 1 year ago

RapiPdf is failing to generate the PDF when a parameter is encoded

/org: 
    get: 
      tags: 
        - org 
      summary: Return list of Account 
      operationId: getAccounts 
      parameters: 
        - name: AccountSchema 
          in: header 
          content: 
            application/json: 
              schema: 
                $ref: '#/components/schemas/AccountSchema' 
        - $ref: '#/components/parameters/CaseNumber' 
      responses: 
        default: 
          $ref: '#/components/responses/Failure' 
        200: 
          description: List of Account 
          content: 
            application/json: 
              schema: 
                type: array 
                items: 
                  $ref: '#/components/schemas/AccountSchema' 
        401: 
          $ref: '#/components/responses/Unauthorized' 

this is the error

rapipdf-min.js:33145 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'deprecated')
    at rapipdf-min.js:33145:1
    at Array.map (<anonymous>)
    at y (rapipdf-min.js:33145:1)
    at E (rapipdf-min.js:33145:1)
    at rapipdf-min.js:33145:1
    at Array.map (<anonymous>)
    at M (rapipdf-min.js:33145:1)
    at A (rapipdf-min.js:33145:1)
    at A.next (<anonymous>)
    at m (rapipdf-min.js:33145:1)