Skip to content

Commit 4273f9c

Browse files
authored
Merge pull request #86 from haskell-servant/allow-swagger2-2.3
Allow swagger2 2.3
2 parents a0d5a53 + 02f1a2e commit 4273f9c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

example/swagger.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
}
5757
},
5858
"produces": [
59-
"application/json"
59+
"application/json;charset=utf-8"
6060
],
6161
"parameters": [
6262
{
@@ -71,7 +71,7 @@
7171
},
7272
"put": {
7373
"consumes": [
74-
"application/json"
74+
"application/json;charset=utf-8"
7575
],
7676
"responses": {
7777
"404": {
@@ -88,7 +88,7 @@
8888
}
8989
},
9090
"produces": [
91-
"application/json"
91+
"application/json;charset=utf-8"
9292
],
9393
"parameters": [
9494
{
@@ -113,7 +113,7 @@
113113
"/todo": {
114114
"post": {
115115
"consumes": [
116-
"application/json"
116+
"application/json;charset=utf-8"
117117
],
118118
"responses": {
119119
"400": {
@@ -127,7 +127,7 @@
127127
}
128128
},
129129
"produces": [
130-
"application/json"
130+
"application/json;charset=utf-8"
131131
],
132132
"parameters": [
133133
{
@@ -153,7 +153,7 @@
153153
}
154154
},
155155
"produces": [
156-
"application/json"
156+
"application/json;charset=utf-8"
157157
]
158158
}
159159
}

servant-swagger.cabal

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: servant-swagger
22
version: 1.1.5
3-
x-revision: 4
3+
x-revision: 5
44
synopsis: Generate Swagger specification for your servant API.
55
description:
66
Swagger is a project used to describe and document RESTful APIs.
@@ -81,7 +81,7 @@ library
8181
, lens >=4.7.0.1 && <4.18
8282
, servant >=0.13 && <0.15
8383
, singleton-bool >=0.1.3 && <0.2
84-
, swagger2 >=2.1 && <2.3
84+
, swagger2 >=2.1 && <2.4
8585
, text >=1.2.0.6 && <1.3
8686
, unordered-containers >=0.2.5.1 && <0.3
8787

0 commit comments

Comments
 (0)