You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Chesnay Schepler (Jira)" <ji...@apache.org> on 2022/10/11 11:09:00 UTC

[jira] [Closed] (FLINK-29504) Jar upload spec should define a schema

     [ https://issues.apache.org/jira/browse/FLINK-29504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chesnay Schepler closed FLINK-29504.
------------------------------------
    Resolution: Fixed

master: e188cb2d66cc68e5eb822c5cca4fe0ee85173157
1.16: 141eeffb6b2c05d7c139c94273c2e5c468b44ec9
1.15: 383d451595f364196010351205f2ee8fd7f073c7

> Jar upload spec should define a schema
> --------------------------------------
>
>                 Key: FLINK-29504
>                 URL: https://issues.apache.org/jira/browse/FLINK-29504
>             Project: Flink
>          Issue Type: Improvement
>          Components: Runtime / REST
>    Affects Versions: 1.15.2
>            Reporter: Tiger (Apache) Wang
>            Assignee: Chesnay Schepler
>            Priority: Major
>              Labels: openapi, pull-request-available
>             Fix For: 1.17.0, 1.15.3, 1.16.1
>
>
> 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: {{}}}}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)