Skip to content

[BUG] [JAVA] [NATIVE] api.moustache asyncNative is missing vendorExtensions.x-java-text-plain-string code #16287

@gnl42

Description

@gnl42
  • Have you provided a full/minimal spec to reproduce the issue?
  "paths" : {
    "/" : {
      "get" : {
        "tags" : [ "download" ],
        "operationId" : "getFile",
        "responses" : {
          "200" : {
            "description" : "OK",
            "content" : {
              "text/plain" : {
                "schema" : {
                  "type" : "string"
                }
              }
            }
          }
        }
      }
    }

  • Have you tested with the latest master to confirm the issue still exists?
    Fails against 7.0.0-beta
  • What's the actual output vs expected output?
    Code tries to parse string as a json object
Description

Trying to return a file but the result kept being parsed as a json response.
Discovered I needed to use <asyncNative>false</asyncNative> in order for vendorExtensions.x-java-text-plain-string
to work

openapi-generator version

7.0.0-beta

Steps to reproduce

Run with "nativeAsync" option

Related issues/PRs

Result of #14132

Suggest a fix

Replicate non-async code section in async secion

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions