Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-29504

Jar upload spec should define a schema

    XMLWordPrintableJSON

Details

    Description

      Install nodejs and run

      $ npx --yes @openapitools/openapi-generator-cli generate -i https://nightlies.apache.org/flink/flink-docs-release-1.15/generated/rest_v1_dispatcher.yml -g typescript-axios -o .

       

      Then it outputs error 

       

      Caused by: java.lang.RuntimeException: Request body cannot be null. Possible cause: missing schema in body parameter (OAS v2): class RequestBody {
          description: null
          content: class Content {
              {application/x-java-archive=class MediaType {
                  schema: null
                  examples: null
                  example: null
                  encoding: null
      {{        }}}}

      {\{    }

      }}
          required: true
      }

       

      This is because in the YAML:

      }}{{ requestBody:

        content:

          application/x-java-archive: {}

       

       

      Attachments

        Issue Links

          Activity

            People

              chesnay Chesnay Schepler
              tigerinus Tiger (Apache) Wang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: