flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aljoscha Krettek (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-3624) Use camelCase naming of JSON attributes generated by the REST API instead of dash
Date Thu, 17 Mar 2016 10:31:33 GMT

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

Aljoscha Krettek commented on FLINK-3624:
-----------------------------------------

That's certainly a valid concern. I don't know whether we can change the Rest API for the
1.x series of releases or whether we have to wait for 2.x, however.

> Use camelCase naming of JSON attributes generated by the REST API instead of dash
> ---------------------------------------------------------------------------------
>
>                 Key: FLINK-3624
>                 URL: https://issues.apache.org/jira/browse/FLINK-3624
>             Project: Flink
>          Issue Type: Improvement
>          Components: Webfrontend
>            Reporter: Zoltán Zvara
>
> It forces inconvenient attribute access in some scripting languages, for example JavaScript
(which includes the JSON (JavaScript Object Notation) specification) and against the widely
used and accepted camelCase style.
> Example:
> {code:title=http://localhost:8081/jobs/8510e306a40e9266fcc6e0989a258a01/vertices|borderStyle=solid}
> {
> jid: "8510e306a40e9266fcc6e0989a258a01",
> name: "Socket Window WordCount",
> isStoppable: false,
> state: "RUNNING",
> start-time: 1458147070328,
> end-time: -1,
> duration: 418389,
> now: 1458147488717,
> {code}
> {{isStoppable}} is camelCase, {{start-time}} is not.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message