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

Add backpressureLevel field without hyphens

    XMLWordPrintableJSON

Details

    Description

      Install nodejs and run

      $ npx --yes --package openapi-typescript-codegen openapi --input https://nightlies.apache.org/flink/flink-docs-release-1.15/generated/rest_v1_dispatcher.yml --output .

      $ npx --package typescript tsc 

      The only thing it complains about is:

      src/models/JobVertexBackPressureInfo.ts:21:17 - error TS1003: Identifier expected.21     export enum 'backpressure-level' {

      This is because for TypeScript, enum name should not have a hyphen in it.

       

      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: