From ec4d0551c0cd3af355a9a64bd2b82c34d538552e Mon Sep 17 00:00:00 2001 From: Brant Knudson Date: Tue, 3 Jan 2017 16:51:25 -0600 Subject: [PATCH] Correct timestamp format in token responses MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The token issue response has timestamps like this: "issued_at": "2017-01-03T22:42:55.000000Z" "expires_at": "2017-01-03T23:42:55.000000Z" Which didn't match the format documented in the API spec (the response has subsecond precision and Z rather than ±HHMM). Change-Id: I1deeac1776a7716ee66d187d1c1c7c1f5b02235f Closes-Bug: 1634568 --- api-ref/source/v2-admin/parameters.yaml | 14 ++++---------- api-ref/source/v2/parameters.yaml | 14 ++++---------- api-ref/source/v3/parameters.yaml | 14 ++++---------- 3 files changed, 12 insertions(+), 30 deletions(-) diff --git a/api-ref/source/v2-admin/parameters.yaml b/api-ref/source/v2-admin/parameters.yaml index 3a502f1aca..cbef718be7 100644 --- a/api-ref/source/v2-admin/parameters.yaml +++ b/api-ref/source/v2-admin/parameters.yaml @@ -291,12 +291,9 @@ token_expires: :: - CCYY-MM-DDThh:mm:ss±hhmm + CCYY-MM-DDThh:mm:ss.sssZ - For example, ``2015-08-27T09:49:58-0500``. - - The ``±hhmm`` value, if included, is the time zone as an offset - from UTC. In the previous example, the offset value is ``-0500``. + For example, ``2015-08-27T09:49:58.000000Z``. A ``null`` value indicates that the token never expires. in: body @@ -317,12 +314,9 @@ token_issued_at: :: - CCYY-MM-DDThh:mm:ss±hhmm + CCYY-MM-DDThh:mm:ss.sssZ - For example, ``2015-08-27T09:49:58-0500``. - - The ``±hhmm`` value, if included, is the time zone as an offset - from UTC. In the previous example, the offset value is ``-0500``. + For example, ``2015-08-27T09:49:58.000000Z``. in: body required: true type: string diff --git a/api-ref/source/v2/parameters.yaml b/api-ref/source/v2/parameters.yaml index f9688f06a1..56ba2cbf6d 100644 --- a/api-ref/source/v2/parameters.yaml +++ b/api-ref/source/v2/parameters.yaml @@ -70,12 +70,9 @@ expires: :: - CCYY-MM-DDThh:mm:ss±hhmm + CCYY-MM-DDThh:mm:ss.sssZ - For example, ``2015-08-27T09:49:58-0500``. - - The ``±hhmm`` value, if included, is the time zone as an offset - from UTC. In the previous example, the offset value is ``-0500``. + For example, ``2015-08-27T09:49:58.000000Z``. A ``null`` value indicates that the token never expires. in: body @@ -103,12 +100,9 @@ issued_at: :: - CCYY-MM-DDThh:mm:ss±hhmm + CCYY-MM-DDThh:mm:ss.sssZ - For example, ``2015-08-27T09:49:58-0500``. - - The ``±hhmm`` value, if included, is the time zone as an offset - from UTC. In the previous example, the offset value is ``-0500``. + For example, ``2015-08-27T09:49:58.000000Z``. in: body required: true type: string diff --git a/api-ref/source/v3/parameters.yaml b/api-ref/source/v3/parameters.yaml index 5942ef0f04..4b055a2e20 100644 --- a/api-ref/source/v3/parameters.yaml +++ b/api-ref/source/v3/parameters.yaml @@ -921,12 +921,9 @@ expires_at: :: - CCYY-MM-DDThh:mm:ss±hhmm + CCYY-MM-DDThh:mm:ss.sssZ - For example, ``2015-08-27T09:49:58-0500``. - - The ``±hhmm`` value, if included, is the time zone as an offset - from UTC. In the previous example, the offset value is ``-0500``. + For example, ``2015-08-27T09:49:58.000000Z``. A ``null`` value indicates that the token never expires. in: body @@ -1094,12 +1091,9 @@ issued_at: :: - CCYY-MM-DDThh:mm:ss±hhmm + CCYY-MM-DDThh:mm:ss.sssZ - For example, ``2015-08-27T09:49:58-0500``. - - The ``±hhmm`` value, if included, is the time zone as an offset - from UTC. In the previous example, the offset value is ``-0500``. + For example, ``2015-08-27T09:49:58.000000Z``. in: body required: true type: string