Skip to content

Commit 327e044

Browse files
committed
Fix tests (add example property for UTCTime schema)
1 parent e665b50 commit 327e044

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

example/swagger.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
}
3232
},
3333
"UTCTime": {
34+
"example": "2016-07-22T00:00:00Z",
3435
"format": "yyyy-mm-ddThh:MM:ssZ",
3536
"type": "string"
3637
},
@@ -157,4 +158,4 @@
157158
}
158159
}
159160
}
160-
}
161+
}

test/Servant/SwaggerSpec.hs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ todoAPI = [aesonQQ|
8383
"UTCTime":
8484
{
8585
"type": "string",
86-
"format": "yyyy-mm-ddThh:MM:ssZ"
86+
"format": "yyyy-mm-ddThh:MM:ssZ",
87+
"example": "2016-07-22T00:00:00Z"
8788
}
8889
},
8990
"paths":

0 commit comments

Comments
 (0)