[
https://issues.apache.org/jira/browse/NIFI-2900?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15574469#comment-15574469
]
ASF GitHub Bot commented on NIFI-2900:
--------------------------------------
GitHub user simplesteph opened a pull request:
https://github.com/apache/nifi/pull/1136
[NIFI-2900] fixes timestamps to be ISO 8601 compliant, as it should b…
…e because of OpenAPI specs
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/simplesteph/nifi NIFI-2900
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/nifi/pull/1136.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1136
----
commit 9d0f9a9625cbd4cd9b428888e9695b8929087a81
Author: simplesteph <[email protected]>
Date: 2016-10-14T06:57:41Z
[NIFI-2900] fixes timestamps to be ISO 8601 compliant, as it should be
because of OpenAPI specs
----
> DateTime API Endpoints don't respect RFC 3339
> ---------------------------------------------
>
> Key: NIFI-2900
> URL: https://issues.apache.org/jira/browse/NIFI-2900
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 1.0.0
> Reporter: Stephane Maarek
>
> Hi,
> the endpoint /flow/process-group/id is supposed to return lastRefreshed as
> part of ProcessGroupFlowDTO as a DateTime, as indicated here:
> lastRefreshed string (date-time) optional The time the flow for
> the process group was last refreshed.
> as it currently stands, what I am getting doesn't look like a timestamp:
> "lastRefreshed":"14:02:46 AEDT"
> I'm not sure how much of the overall API is affected
> Edit:
> Actually, it seems every date a "date-time" is created we expect the format
> "HH:mm:ss z".
> As per the OpenAPI specs, if a field is annotated "date-time", it should
> respect the RFC 3339 convention
> (https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types).
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)