File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
doc/cookbook/db-sqlite-simple
servant-docs/test/Servant Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ packages:
2626 doc/cookbook/custom-errors
2727 doc/cookbook/basic-streaming
2828 doc/cookbook/db-postgres-pool
29- -- doc/cookbook/db-sqlite-simple
29+ doc/cookbook/db-sqlite-simple
3030 doc/cookbook/file-upload
3131 doc/cookbook/generic
3232 -- doc/cookbook/hoist-server-with-context
@@ -54,9 +54,6 @@ constraints:
5454constraints : base-compat ^>= 0.11
5555constraints : semigroups ^>= 0.19
5656
57- -- MonadFail
58- -- https://github.com/nurpax/sqlite-simple/issues/74
59- constraints : sqlite-simple < 0
6057-- allow-newer: sqlite-simple-0.4.16.0:semigroups
6158-- allow-newer: direct-sqlite-2.3.24:semigroups
6259
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ executable cookbook-db-sqlite-simple
2323 , http-types >= 0.12
2424 , markdown-unlit >= 0.4
2525 , http-client >= 0.5
26- , sqlite-simple >= 0.4
26+ , sqlite-simple >= 0.4.5.0
2727 , transformers
2828 default-language : Haskell2010
2929 ghc-options : -Wall -pgmL markdown-unlit
Original file line number Diff line number Diff line change @@ -126,8 +126,11 @@ spec = describe "Servant.Docs" $ do
126126 it " mentions headers" $ do
127127 md `shouldContain` " - This endpoint is sensitive to the value of the **X-Test** HTTP header."
128128
129- it " contains response samples" $
130- md `shouldContain` " {\" dt1field1\" :\" field 1\" ,\" dt1field2\" :13}"
129+ it " contains response samples - dt1field1" $
130+ md `shouldContain` " \" dt1field1\" :\" field 1\" "
131+ it " contains response samples - dt1field2" $
132+ md `shouldContain` " \" dt1field2\" :13"
133+
131134 it " contains request body samples" $
132135 md `shouldContain` " 17"
133136
You can’t perform that action at this time.
0 commit comments