[ 
https://issues.apache.org/jira/browse/FLINK-29503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17615198#comment-17615198
 ] 

Tiger (Apache) Wang edited comment on FLINK-29503 at 10/10/22 4:25 PM:
-----------------------------------------------------------------------

Verified the issue no longer repros, with yaml file from 
https://github.com/apache/flink/pull/20962/files.

 

I could build a JS package out of generated TypeScript code successfully.

 

Thanks.


was (Author: JIRAUSER279801):
Verified the issue no longer repros.

 

I could build a JS package out of generated TypeScript code successfully.

 

Thanks.

> Add backpressureLevel field without hyphens
> -------------------------------------------
>
>                 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
>             Fix For: 1.16.0, 1.15.3
>
>
> 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)

Reply via email to