servant-aeson-specs alternatives and similar packages
Based on the "servant" category.
Alternatively, view servant-aeson-specs alternatives based on common mentions on social networks and blogs.
-
servant
Main repository for the servant libraries — DSL for describing, serving, querying, mocking, documenting web applications and more! -
servant-generate
Generate default implementations for servers in a flexible way (a.k.a servant-mock on steroids)
WorkOS - The modern identity platform for B2B SaaS
Do you think we are missing an alternative of servant-aeson-specs or a related project?
README
servant-aeson-specs
servant-aeson-specs
allows you to generically obtain tests to make sure that
the types you use in your servant applications can correctly be converted to
JSON and read back to Haskell using aeson
.
Backwards compatibility with 0.4.1
If you already have some golden files created by 0.4.1, there are two options
to maintain backwards compatibility. You can either move the files into a
directory called golden
and set the sampleSize
to 200:
apiGoldenSpecsWithSettings (defaultSettings { sampleSize = 200}) (Proxy :: Proxy SomeType)
or if you want to keep the golden files in golden.json
you can do the following:
apiGoldenSpecsWithSettings (defaultSettings { goldenDirectoryOption = CustomDirectoryName "golden.json"
, sampleSize = 200}) (Proxy :: Proxy SomeType)