[ https://issues.apache.org/jira/browse/FLINK-29503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17612919#comment-17612919 ]
Chesnay Schepler commented on FLINK-29503: ------------------------------------------ This is less of an issue with a spec but rather the REST API itself. We'll need to duplicate the field. > [OpenAPI] enum `backpressure-level` should be backpressurelevel so code > generator recognizes it > ----------------------------------------------------------------------------------------------- > > Key: FLINK-29503 > URL: https://issues.apache.org/jira/browse/FLINK-29503 > Project: Flink > Issue Type: Improvement > Components: Runtime / REST > Affects Versions: 1.15.2 > Reporter: Tiger (Apache) Wang > Assignee: Chesnay Schepler > Priority: Major > Labels: openapi > > 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. > -- This message was sent by Atlassian Jira (v8.20.10#820010)