flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Mushketyk (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-3624) Use camelCase naming of JSON attributes generated by the REST API instead of dash
Date Fri, 02 Sep 2016 21:27:20 GMT

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

Ivan Mushketyk commented on FLINK-3624:
---------------------------------------

[~aljoscha] I think another option could be to have to sets of fields (e.g. start-time and
startTime) and them remove dash separated fields in the next major version.

> 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