openapi-generator icon indicating copy to clipboard operation
openapi-generator copied to clipboard

[BUG] Asciidoc generate wrong null table cell value

Open vigarpad opened this issue 1 month ago • 2 comments

Bug Report Checklist

  • [ ] Have you provided a full/minimal spec to reproduce the issue?
  • [ ] Have you validated the input using an OpenAPI validator?
  • [ ] Have you tested with the latest master to confirm the issue still exists?
  • [ ] Have you searched for related issues/PRs?
  • [ ] What's the actual output vs expected output?
  • [ ] [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

Asciidoc generator generate wrong cell value in adoc, when the cell is empty!

openapi-generator version

7.17.0

OpenAPI declaration file content or url
      parameters:
        - name: applicantId
          in: path
          description: The unique identifier of the applicant
          required: true
          schema:
            type: string
            format: uuid
Generation Details

Generate wrong asciidoc table:

'''adoc ===== Parameters

====== Path Parameters

[cols="2,3,1,1,1"] |=== |Name| Description| Required| Default| Pattern

| applicantId | The unique identifier of the applicant | X | null | |===

'''

Correct asciidoc table:

'''adoc ===== Parameters

====== Path Parameters

[cols="2,3,1,1,1"] |=== |Name| Description| Required| Default| Pattern

| applicantId | The unique identifier of the applicant | X | null | |===

'''

Steps to reproduce
Related issues/PRs
Suggest a fix

vigarpad avatar Nov 19 '25 09:11 vigarpad

thanks for reporting the issue

may i know if you've time to contribute a fix? we can provide you some good starting points.

wing328 avatar Nov 23 '25 10:11 wing328

Hi! I can try, to fix. :)

vigarpad avatar Nov 26 '25 12:11 vigarpad