Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.15.2
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
- links to