Skip to content

Commit

Permalink
fix: date-time inconsistency (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
gkocak-scottlogic authored Mar 29, 2023
1 parent 45198d8 commit cbd9524
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions features/response.feature
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ Feature: API responses, including model object deserialization
{ "id": 48, "date": "2013-07-21", "dateTime": "2017-07-21T17:32:28Z" }
"""
Then the response should be of type DateResponse
And the response should have a property date with value 2013-07-21T00:00:00.000Z
And the response should have a property dateTime with value 2017-07-21T17:32:28.000Z
And the response should have a property date with value 2013-07-21
And the response should have a property dateTime with value 2017-07-21T17:32:28Z

Scenario: the API returns an Object with additionalProperties
Given an API with the following specification
Expand Down Expand Up @@ -205,7 +205,7 @@ Feature: API responses, including model object deserialization
"application/json": {
"schema": {
"type": "object",
"additionalProperties": { "type": "string", "format": "date-time" }
"additionalProperties": { "type": "string", "format": "date" }
}
}
}
Expand All @@ -226,8 +226,8 @@ Feature: API responses, including model object deserialization
"""
{ "dateOne": "2013-07-21", "dateTwo": "2012-07-21" }
"""
Then the response should have a property dateOne with value 2013-07-21T00:00:00.000Z
And the response should have a property dateTwo with value 2012-07-21T00:00:00.000Z
Then the response should have a property dateOne with value 2013-07-21
And the response should have a property dateTwo with value 2012-07-21

Scenario: the API returns headers
Given an API with the following specification
Expand Down

0 comments on commit cbd9524

Please sign in to comment.